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

< Previous PageNext Page > Hide TOC

Printing Tasks

“Chapter 2, Printing Concepts for Carbon Developers,” discussed the high-level tasks required to support printing in a Carbon application: setting up the page format, setting up the print settings, and printing the print job. This chapter shows you how to implement each of those tasks for a document-based Carbon application, such as a text editor or drawing application. This chapter describes the following tasks:

This chapter contains sample code to illustrate each task you need to do to support printing. See Printing Carbon Sample Code for the sample application on which the code is based.

If you’ve installed the Mac OS X Developer Tools CD you can find additional sample applications in the following directory that show how to support printing in Mac OS X. You can compile and run the sample applications in Project Builder.

/Developer/Examples/Printing/App/

As you go through the sample code in this chapter, note that any function, data type, or constant your application must supply has the prefix My, except for global constants, which use the prefix gMy. Application-defined constants have the prefix kMy. Carbon Printing Manager functions use the prefix PM. If a line of code contains a commented number, an explanation for that line of code follows the listing.

Note: If your application has very simple printing needs and you are using Multilingual Text Engine (MLTE), you should investigate using the MLTE functions TXNPageSetup and TXNPrint instead of using Carbon Printing Manager functions. The MLTE functions call through to the Carbon Printing Manager, elminating the need for you to write the code described in this chapter.



< 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