Instance Method

contentViewAtIndex:effectiveCharacterRange:

Returns the view the context is displayed in.

Declaration

- (NSView *)contentViewAtIndex:(NSUInteger)index effectiveCharacterRange:(NSRangePointer)outRange;

Parameters

index

The index of the view containing the located text.

outRange

Returns, by reference, the entire range of the string displayed by the view

Return Value

Returns the view the contains the found text.

See Also

Determining and Displaying Text Locations

- rectsForCharacterRange:

An array containing the located text in the content view’s coordinate system.

- scrollRangeToVisible:

Scrolls the specified range such that it is visible.

visibleCharacterRanges

An array of visible character ranges.