Overview of the Printing Classes
Cocoa supports printing with the NSPrintInfo, NSPageLayout, NSPrintPanel, and NSPrintOperation classes. Each class controls a different aspect of printing and of the resulting output.
NSPrintInfo
The NSPrintInfo class encapsulates information used to control printing. It provides methods to access the dimensions of the user’s selected paper size, the type of pagination to use, whether the output should be centered horizontally or vertically on the page, and the orientation of the paper. It also provides information about the selected printer and the current print job status. NSPrintInfo instances store a dictionary containing detailed information about printing options.
Creating an NSPrintInfo Instance
A graphical ...
Get Cocoa® Programming 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.