Contents

contentView(at:effectiveCharacterRange:)

Returns the view the context is displayed in.

Declaration

optional func contentView(at index: Int, effectiveCharacterRange outRange: NSRangePointer) -> NSView

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