Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

< Previous PageNext Page > Hide TOC

Adopting the Carbon Printing Manager

This chapter provides information that will help you convert printing code that uses the old Printing Manager so that your code uses the Carbon Printing Manager. The Carbon Printing Manager was designed to let Carbon applications take advantage of new features in Mac OS X, while still working correctly in previous versions of the Mac OS.

If you want to port an application that runs in Mac OS 9 and earlier versions of the Mac OS to one that runs in Mac OS X, you should read Inside Carbon: Carbon Porting Guide. The guide covers all porting topics, except for porting printing code, which is covered in this chapter.

Updating your application to use the Carbon Printing Manager is a straightforward process. These are the basic steps:

  1. Remove all references to the Printing.h header file from your project.

  2. If you are building your application so that is runs only in Mac OS X, make sure you link against the Application Services and Carbon frameworks. If you are building your application so that it can run in Mac OS 9 as well as in Mac OS X, you also need to add the CarbonLib library to your project.

  3. Convert your code to use the new printing functions and opaque data types, as described in the following sections.

Contents:

New and Changed Printing Functions
New Data Types and Accessor Functions
Supported PrGeneral Opcodes
Supported Picture Comments




< Previous PageNext Page > Hide TOC


Last updated: 2004-08-31




Did this document help you?
Yes: Tell us what works for you.

It’s good, but: Report typos, inaccuracies, and so forth.

It wasn’t helpful: Tell us what would have helped.
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice