Instance Method

rangeOfTextList:atIndex:

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

Declaration

- (NSRange)rangeOfTextList:(NSTextList *)list atIndex:(NSUInteger)location;

Parameters

list

The text list.

location

The location in the text list.

Return Value

The range of the given text list containing the location.

See Also

Calculating Ranges

- itemNumberInTextList:atIndex:

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

- rangeOfTextBlock:atIndex:

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

- rangeOfTextTable:atIndex:

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