Summary

This chapter completes the description of drawing facilities offered by Cocoa. The facilities for rendering images are extremely powerful. Cocoa also offers several interfaces for drawing text. Basic text drawing is described in this chapter. This basic interface is extremely low level. Chapter 11, “Text Views,” describes the NSText object suite that provides a high-level, text-rendering interface. Chapters 12, “Custom Views and Graphics Part I,” and 13, “Custom Views and Graphics Part II,” in combination with this chapter discuss custom NSView subclasses that draw. Custom drawing is one reason to subclass NSView. Customizing the handling of events such as mouse and keyboard input is another. Chapter 15, “Events and Cursurs,” discusses ...

Get Cocoa® Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.