Contents

textView(_:shouldSelectCandidateAt:)

Returns a Boolean value that indicates whether to select the text object at the index.

Declaration

@MainActor optional func textView(_ textView: NSTextView, shouldSelectCandidateAt index: Int) -> Bool

Parameters

  • textView:

    The text view that sent the message.

  • index:

    The index that represents the start of the candidate text to evaluate.

Return Value

Returns true if the framework selects the text.

See Also

Managing the Selection