Display text and check spelling.
In most cases, you can lay out your app's text using the
NSText classes (or their subclasses). Use the
NSText class to add either a label or a simple text input. Use the
NSText class to provide more comprehensive layout and editing features for larger bodies of text.
NSText supports rich text, attachments (graphics, file, and other), input management and key binding, and marked text attributes.
NSText works with the font panel and menu, rulers and paragraph styles, the Services facility (for example, the spell-checking service), and the pasteboard.
NSText also allows customizing through delegation and notifications—you rarely need to subclass
NSText. You rarely create instances of
NSText programmatically either, because objects on Interface Builder’s palettes, such as
NSScroll, already contain
For even more powerful and more creative text manipulation (such as displaying text in a circle) see TextKit.