Instance Method

itemNumberInTextList:atIndex:

Returns the index of the item at the given location within the list.

Declaration

- (NSInteger)itemNumberInTextList:(NSTextList *)list atIndex:(NSUInteger)location;

Parameters

list

The text list.

location

The location of the item.

Return Value

Returns the index within the list.

See Also

Calculating Ranges

- rangeOfTextBlock:atIndex:

Returns the range of the individual text block that contains the given location.

- rangeOfTextList:atIndex:

Returns the range of the given text list that contains the given location.

- rangeOfTextTable:atIndex:

Returns the range of the given text table that contains the given location