
526 9 Chapter 25: Printing
sible; as a result, it should be a simple matter to redraw the objects
in a new view.
Mac OS X supports PDF print previews. When these are required,
you can implement them with a special override if needed.
Although the standard page setup and printing dialogs are usually
satisfactory, you can also extend them.
Basic Printing
Using the
Displayed View
Printing is handled by the NSPrintOperation object. You are
responsible for creating it, associating a view with it, and run-
ning it.
The simplest form of printing involves overriding the print
method of a view. If you do so, printing will just work for that
view. ...