Type Method

indexSetWithIndexesInRange:

Creates an index set with an index range.

Declaration

+ (instancetype)indexSetWithIndexesInRange:(NSRange)range;

Parameters

indexRange

An index range. Must be in the range 0 .. NSNotFound - 1.

Return Value

NSIndexSet object containing indexRange.

Discussion

The resulting index set has a firstIndex equal to the location of indexRange, and a count equal to the length of indexRange. Specifying a zero-length range results in an empty index set.

See Also

Creating Index Sets

+ indexSet

Creates an empty index set.

+ indexSetWithIndex:

Creates an index set with an index.

- init

Initializes an allocated NSIndexSet object.

- initWithIndex:

Initializes an allocated NSIndexSet object with an index.

- initWithIndexesInRange:

Initializes an allocated NSIndexSet object with an index range.

- initWithIndexSet:

Initializes an allocated NSIndexSet object with an index set.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software