Deprecated NSMutableArray Methods

A method identified as deprecated has been superseded and may become unsupported in the future.

Deprecated in Mac OS X v10.6

removeObjectsFromIndices:numIndices:

Removes the specified number of objects from the receiver, beginning at the specified index. (Deprecated in Mac OS X v10.6. Use removeObjectsAtIndexes: instead.)

- (void)removeObjectsFromIndices:(NSUInteger *)indices numIndices:(NSUInteger)count

Parameters
indices

A C array of the indices of the objects to remove from the receiver.

count

The number of objects to remove from the receiver.

Discussion

This method is similar to removeObjectAtIndex:, but allows you to efficiently remove multiple objects with a single operation. If you sort the list of indices in ascending order, you will improve the speed of this operation.

This method cannot be sent to a remote object with distributed objects.

Availability
See Also
Declared In
NSArray.h


© 2009 Apple Inc. All Rights Reserved. (Last updated: 2009-10-19)