Manage text storage and perform custom layout of text-based content in your app's views.
NSAttributed objects are used extensively throughout TextKit. The
NSText class is a subclass of
NSMutable, and many of the TextKit classes (for example, the classes listed in Formatted Content) focus on creating complex
NSAttributed instances. Use these classes to specify your text's format.
Most of the time, you can use TextKit to fine tune the formatting and layout of a
NSText by modifying the view's
text properties. If you need more control, you can also use TextKit to build your own custom text controls.