Chapter 12. Custom Views and Graphics Part I

IN THIS CHAPTER

The Application Kit contains classes that provide the user interface elements common to most applications. However, some applications require the use of custom interface elements and graphics that none of the Application Kit classes provide. For example, the Application Kit doesn’t contain any classes for plotting graphs. Therefore, it is necessary to subclass NSView, an Application Kit class, to create such graphics.

There are several ways to draw when implementing a subclass of NSView. The first and most common way is to use Quartz 2D graphics. Another is to use Cocoa’s support ...

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.