Class

NSMutableIndexSet

A mutable collection of unique integer values that represent indexes in another collection.

Declaration

@interface NSMutableIndexSet : NSIndexSet

Overview

The NSMutableIndexSet class represents a mutable collection of unique unsigned integers, known as indexes because of the way they are used. This collection is referred to as a mutable index set. The inclusive range of valid indexes is 0...(NSNotFound - 1); trying to use indexes outside this range is invalid.

The values in a mutable index set are always sorted, so the order in which values are added is irrelevant.

Do not subclass the NSMutableIndexSet class.

Topics

Adding Indexes

- addIndex:

Adds an index to the receiver.

- addIndexes:

Adds the indexes in an index set to the receiver.

- addIndexesInRange:

Adds the indexes in an index range to the receiver.

Removing Indexes

- removeIndex:

Removes an index from the receiver.

- removeIndexes:

Removes the indexes in an index set from the receiver.

- removeAllIndexes

Removes the receiver’s indexes.

- removeIndexesInRange:

Removes the indexes in an index range from the receiver.

Shifting Index Groups

- shiftIndexesStartingAtIndex:by:

Shifts a group of indexes to the left or the right within the receiver.

Relationships

Inherits From

See Also

Indexes

NSIndexPath

A list of indexes that together represent the path to a specific location in a tree of nested arrays.

NSIndexSet

An immutable collection of unique integer values that represent indexes in another collection.