First page Back Continue Last page Graphics
Foundation Kit – NSMutableArray
NSMutableArray is subclass of NSArray.
Both manage the ordered collection of objects.
NSArray creates static arrays and NSMutable creates dynamic arrays.
Like NSMutableString you need to give initial capacity while declaring NSMutableArray.
+ (id) arrayWithCapacity: (unsigned) numItems
There are also methods to add and remove objects.
- (void) addObject: (id) anObject
- (void) removeObjectAtIndex: (unsigned) index