Differences From Artifact [a6aa74e205]:
- File src/OFMutableArray.h — part of check-in [e84073d0f9] at 2010-08-29 17:53:56 on branch trunk — More methods using blocks. (user: js, size: 2928) [annotate] [blame] [check-ins using]
To Artifact [103c29de74]:
- File
src/OFMutableArray.h
— part of check-in
[e2b06423e0]
at
2010-09-05 23:19:08
on branch trunk
— Replace OFObject* with id in many places.
We assume now that every object understands retain, release, etc. so
that we can weaken the type from OFObject* to id. This makes it
possible to use different root object classes. (user: js, size: 2865) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
24 25 26 27 28 29 30 | } /** * Adds an object to the OFArray. * * \param obj An object to add */ | | | | | | | | | | | 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | } /** * Adds an object to the OFArray. * * \param obj An object to add */ - (void)addObject: (id)obj; /** * Adds an object to the OFArray at the specified index. * * \param obj An object to add * \param index The index where the object should be added */ - (void)addObject: (id)obj atIndex: (size_t)index; /** * Replaces all objects equivalent to the first specified object with the * second specified object. * * \param old The object to replace * \param new The replacement object */ - (void)replaceObject: (id)old withObject: (id)new; /** * Replaces the object at the specified index with the specified object. * * \param index The index of the object to replace * \param obj The replacement object * \return The old object, autoreleased */ - (id)replaceObjectAtIndex: (size_t)index withObject: (id)obj; /** * Replaces all objects that have the same address as the first specified object * with the second specified object. * * \param old The object to replace * \param new The replacement object */ - (void)replaceObjectIdenticalTo: (id)old withObject: (id)new; /** * Removes all objects equivalent to the specified object. * * \param obj The object to remove */ - (void)removeObject: (id)obj; /** * Removes all objects that have the same address as the specified object. * * \param obj The object to remove */ - (void)removeObjectIdenticalTo: (id)obj; /** * Removes the object at the specified index. * * \param index The index of the object to remove * \return The object that was at the index, autoreleased */ |
︙ | ︙ |