Mac OS X Unleashed

Mac OS X Unleashed

By John Ray and William C. Ray

Quartz

The final piece of Apple's imaging framework is Quartz. Announced only a year before Mac OS X's final release (a year is not a long time in the development of an operating system), Quartz provides a graphics model unlike anything seen before—with the possible exception of the NeXT computer.

In all previous versions of the Mac operating system, the graphics toolbox was called QuickDraw. QuickDraw was composed of a large number of routines for drawing and manipulating graphics primitives. Over the years, QuickDraw expanded to include new technologies such as color, but for the most part, it stayed the same. Windows computers quickly caught up with the Macintosh and offered programmers features similar to the QuickDraw toolbox. When Apple created Mac OS X, it decided to go all the way and create an entirely new imaging model that was far more advanced than the competition.

The original NeXTSTEP (and later the OpenStep) operating system was based on Display PostScript. PostScript is a page description language from Adobe used to create resolution-independent output (usually on printers). NeXTSTEP extended that technology to the operating system's display API. For the first time ever, the user could truly get a WYSIWYG display because both the output printer and the display device were using the same language to generate their images. Additionally, NeXTSTEP offered the capability to work with remote displays; that is, to display the output of a program on a computer other than that which was running the software.

The first release of Mac OS X Server used the same Display PostScript standard found in OpenStep and NeXTSTEP. Licensing issues and the availability of more modern standards meant that a change needed to take place before the consumer version of OS X appeared. Instead of PostScript, Apple based its new Quartz 2D imaging model on another Adobe standard: PDF, the Portable Document Format, which combines PostScript with several additional features.

Quartz offers the capability to create dramatic effects within applications with only a minimal amount of work. For example, it automatically handles tasks such as

These might seem like operations reserved for graphics applications, but in fact they are available across the entire Mac OS X system. Figure 1.6 shows the Mac OS X Terminal window on top of the iTunes application. As iTunes creates its dynamic visualizations, they are visible through the partially translucent Terminal window.

01fig06.jpg

Figure 1.6 Quartz's advanced features allow real-time compositing of graphics.

What is truly remarkable is that the terminal remains fully responsive and usable. Quartz handles the compositing of the two windows without the need for either of the applications to know anything about one another. Although it is not responsible for the look and feel of the system, Quartz is the driving force behind the incredible effects that make up the Mac OS X interface. Speaking personally, I'd be surprised to find a Mac fan out there who did not brush away a tear when Steve Jobs demonstrated the Dock and Genie effects for the first time. Quartz is the engine that makes it all possible.

Share ThisShare This

Informit Network