Contents

NSPrintOperation

An object that controls operations that generate Encapsulated PostScript (EPS) code, Portable Document Format (PDF) code, or print jobs.

Declaration

@MainActor class NSPrintOperation

Overview

An NSPrintOperation object works in conjunction with two other objects: an NSPrintInfo object, which specifies how the code should be generated, and an NSView object, which generates the actual code.

It is important to note that the majority of methods in NSPrintOperation copy the instance of NSPrintInfo passed into them. Future changes to that print info are not reflected in the print info retained by the current NSPrintOperation object. All changes should be made to the print info before passing to the methods of this class. The only method in NSPrintOperation which does not copy the NSPrintInfo instance is printInfo.

Topics

Creating the Printing Operation Object

Setting the Current Print Operation for This Thread

Determining the Type of Operation

Modifying the Printing Information

Getting the View

Getting the Printing Quality

Running the Print Operation

Modifying the User Interface

Managing the Drawing Context

Managing Page Information

Managing Printing Threads

See Also

Print Information