NSText declares the most general programmatic interface for objects that manage text. You usually use instances of its subclass,
- macOS 10.10+
Draws text for user interface objects
Uses a delegate
Provides text editing capabilities
Controls text attributes such as type size, font, and color
Commonly Used Methods
NSTextView extends the interface declared by
NSText and provides much more sophisticated functionality than that declared in
NSText initialization creates an instance of a concrete subclass, such as
NSTextView. Instances of any of these classes are generically called text objects.
Text objects are used by the Application Kit wherever text appears in interface objects: A text object draws the title of a window, the commands in a menu, the title of a button, and the items in a browser. Your application can also create text objects for its own purposes.