Next: Adding an Object Up: NSArray Previous: Searching for an Object

NSMutableArray

If you need to add, remove or replace objects in an array, then you should use a NSMutableArray. Generally, you create NSMutableArrays by simply using
NSMutableArray *array;

array = [NSMutableArray new];
(you then need to AUTORELEASE it if needed). This creates an NSMutableArray containing no elements.



Subsections

Nicola 2002-01-13