#import <OFMutableArray.h>
Public Member Functions | |
(id) | - addObject: |
(id) | - addObject:atIndex: |
(id) | - replaceObject:withObject: |
(id) | - replaceObjectAtIndex:withObject: |
(id) | - replaceObjectIdenticalTo:withObject: |
(id) | - removeObject: |
(id) | - removeObjectIdenticalTo: |
(id) | - removeObjectAtIndex: |
(id) | - removeNObjects: |
(id) | - removeNObjects:atIndex: |
The OFMutableArray class is a class for storing, adding and removing objects in an array.
- (id) addObject: | (OFObject*) | obj |
- (id) addObject: | (OFObject*) | obj | ||
atIndex: | (size_t) | index | ||
- (id) removeNObjects: | (size_t) | nobjects |
- (id) removeNObjects: | (size_t) | nobjects | ||
atIndex: | (size_t) | index | ||
Removes the specified amount of objects at the specified index.
nobjects | The number of objects to remove | |
index | The index at which the objects are removed |
Reimplemented from OFArray.
- (id) removeObject: | (OFObject*) | obj |
Removes all objects equivalent to the specified object.
obj | The object to remove |
Reimplemented from OFArray.
- (id) removeObjectAtIndex: | (size_t) | index |
Removes the object at the specified index.
index | The index of the object to remove |
Reimplemented from OFArray.
- (id) removeObjectIdenticalTo: | (OFObject*) | obj |
Removes all objects that have the same address as the specified object.
obj | The object to remove |
Reimplemented from OFArray.
Replaces all objects equivalent to the first specified object with the second specified object.
old | The object to replace | |
new | The replacement object |
Reimplemented from OFArray.
- (id) replaceObjectAtIndex: | (size_t) | index | ||
withObject: | (OFObject*) | obj | ||
Replaces the object at the specified index with the specified object.
index | The index of the object to replace | |
obj | The replacement object |
Reimplemented from OFArray.
Replaces all objects that have the same address as the first specified object with the second specified object.
old | The object to replace | |
new | The replacement object |
Reimplemented from OFArray.