NSTextViewDelegate
A set of optional methods that text view delegates can use to manage selection, set text attributes, work with the spell checker, and more.
Declaration
protocol NSTextViewDelegate : NSTextDelegateTopics
Accessing Text System Objects
Controlling Display
Supporting Quick Look
Managing the Selection
textView(_:willChangeSelectionFromCharacterRange:toCharacterRange:)textView(_:willChangeSelectionFromCharacterRanges:toCharacterRanges:)textViewDidChangeSelection(_:)textView(_:candidates:forSelectedRange:)textView(_:candidatesForSelectedRange:)textView(_:shouldSelectCandidateAt:)textView(_:shouldUpdateTouchBarItemIdentifiers:)
Managing the Pasteboard
Setting Text Attributes
textView(_:shouldChangeTextIn:replacementString:)textView(_:shouldChangeTextInRanges:replacementStrings:)textView(_:shouldChangeTypingAttributes:toAttributes:)textViewDidChangeTypingAttributes(_:)
Clicking and Pasting
Working With the Spelling Checker
textView(_:shouldSetSpellingState:range:)textView(_:willCheckTextIn:options:types:)textView(_:didCheckTextIn:types:options:results:orthography:wordCount:)
Responding to writing tools interactions
textViewWritingToolsWillBegin(_:)textViewWritingToolsDidEnd(_:)textView(_:writingToolsIgnoredRangesInEnclosingRange:)