NSTextInput protocol defines the methods that Cocoa text views must implement in order to interact properly with the text input management system.
- macOS 10.0+
NSTextView and its abstract superclass
NSText are the only classes included in Cocoa that implement
NSTextInput. To create another text view class, you can either subclass
NSTextView (and not
NSText, for historical reasons), or subclass
NSView and implement the