O'Reilly logo

Programming with Quartz by Philip Schneider, Bunny Laden, David Gelphman

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

Chapter 4 Using Quartz 2D in Carbon

Although you can use the Quartz 2D API just as easily with the Carbon framework as you can with the Cocoa framework, the process of obtaining a graphics context differs depending on which framework you use. The Carbon framework has its origins in the pre-Mac OS X APIs. Originally Carbon was seen as a bridge between the Mac OS 9 and Mac OS X worlds, but today’s Carbon framework is really a collection of C APIs that are used by C and C++ programmers to develop Mac OS X applications. The Carbon framework, unlike Cocoa, provides support for moving older QuickDraw-based applications to Quartz 2D. For that reason, there are two ways to get a Quartz graphics context from the Carbon framework.

The preferable way to ...

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