textField(_:textView:shouldSelectCandidateAt:)
Notifies the delegate that the user selected the candidate at index in -[NSCandidateListTouchBarItem candidates] for the text view’s candidateListTouchBarItem. Returns a Boolean value that indicates whether to select the text object at the index.
Declaration
@MainActor optional func textField(_ textField: NSTextField, textView: NSTextView, shouldSelectCandidateAt index: Int) -> BoolParameters
- textField:
The text field that sent the message.
- textView:
The text view that sent the message.
- index:
The index that represents the start of the candidate text to evaluate, or
NSNotFoundif no candidate is to be selected.