O'Reilly logo

Cocoa Programming for OS X: The Big Nerd Ranch Guide by Aaron Hillegass, Adam Preble, Nate Chandler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

For the More Curious: Core Graphics and Quartz

The APIs for drawing used in this chapter are commonly referred to as AppKit drawing APIs. Behind the scenes, the AppKit drawing APIs are implemented using a framework called Core Graphics, which is colloquially referred to as Quartz.

If you are serious about custom drawing you will want to look into Core Graphics. The concepts are very similar, except it is a C API, and it is much more explicit about the graphics context (almost every Core Graphics API takes a CGContextRef, essentially a pointer to the context, as its first parameter). Core Graphics provides somewhat lower-level access to drawing and, in some cases, much finer control than is possible in AppKit.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required