Deprecated NSMutableArray Methods

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

Deprecated in OS X v10.6

removeObjectsFromIndices:numIndices:

Removes the specified number of objects from the array, beginning at the specified index. (Deprecated in 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 receiving array.

count

The number of objects to remove from the receiving array.

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.

Special Considerations

This deprecated method uses a C array of indices. The removeObjectsAtIndexes: method uses an NSIndexSet which provides a more efficient way of indexing into an array.

Availability
  • Available in OS X v10.0 and later.
  • Deprecated in OS X v10.6.
Declared In
NSArray.h