Drawing Text
Drawing text is an extremely complex process. Because of this, the Application Kit provides the NSText object just for this purpose. Because of the complexity of this object, a whole chapter of this book (Chapter 11, “Text Views”) has been devoted to the NSText and related objects. Sometimes the NSText object is overkill for the type of text rendering that needs to be accomplished. At other times, it doesn’t provide some of the special, in-depth manipulation options that would be useful in a heavy-duty graphically oriented application. In these cases, there are some other alternatives available that might make more sense.
The Application Kit adds drawing methods to the NSString and NSAttributedString classes. These methods are useful ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access