Dockyard > Objective-C Classes > NSMutableArray Additions
Class Description
Provides basic support for Tiger-only NSMutableArray methods dealing with NSIndexSet. If you are developing a 10.3 application, call one of these methods instead of the standard ones. On a 10.4 system, these methods will simply forward the message. On a 10.3 system, they will do the work themselves. (NSIndexSet does not exist on pre-10.3 systems).
Methods
Modifying the array
- pantherInsertObjects:atIndexes:
- pantherRemoveObjectsAtIndexes:
Method Detail
pantherInsertObjects:atIndexes:
- (void)pantherInsertObjects:(NSArray *)additions atIndexes:(NSIndexSet *)indexSet
Inserts the objects in objects into the receiver at the indexes specified by indexSet. Each object in objects is inserted into the receiver in turn at the corresponding location specified in indexSet after earlier insertions have been made (docs taken from ADC). This method will call insertObjects:atIndexes: on 10.4 or later systems, and use insertObject:atIndex: multiple times on 10.3.
See also: insertObjects:atIndexes: (NSMutableArray)
pantherRemoveObjectsAtIndexes:
- (void)pantherRemoveObjectsAtIndexes:(NSIndexSet *)indexSet
This method is similar to removeObjectAtIndex:, but allows you to efficiently remove multiple objects with a single operation. indexes specifies the locations of objects to be removed given the state of the receiver when the method is invoked. The locations specified by indexes must lie within the bounds of the receiver. (docs taken from ADC). This method will call removeObjectsAtIndexes: on 10.4 or later systems, and use removeObjectsFromIndices:numIndices: on 10.3.
See also: removeObjectsAtIndexes: (NSMutableArray), removeObjectsAtIndices:numIndices: (NSMutableArray)
This page was generated with DocYouMeant, a program created by Belkadan Software