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 ...
Get Programming with Quartz 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.