Instance Method

initWithIndex:

Initializes an allocated NSIndexSet object with an index.

Declaration

- (instancetype)initWithIndex:(NSUInteger)value;

Parameters

index

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

Return Value

Initialized NSIndexSet object with index.

See Also

Creating Index Sets

+ indexSet

Creates an empty index set.

+ indexSetWithIndex:

Creates an index set with an index.

+ indexSetWithIndexesInRange:

Creates an index set with an index range.

- init

Initializes an allocated NSIndexSet object.

- initWithIndexesInRange:

Initializes an allocated NSIndexSet object with an index range.

- initWithIndexSet:

Initializes an allocated NSIndexSet object with an index set.