Protocol

NSTextInput

The NSTextInput protocol defines the methods that Cocoa text views must implement in order to interact properly with the text input management system.

Overview

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 NSTextInput protocol.

Relationships

Adopted By