Instance Method

runOperation

Runs the print operation on the current thread.

Declaration

- (BOOL)runOperation;

Return Value

YES if the operation was successful; otherwise, NO.

Discussion

The operation runs to completion in the current thread, blocking the application. A separate thread is not spawned, even if canSpawnSeparateThread is YES. Use runOperationModalForWindow:delegate:didRunSelector:contextInfo: to use document-modal sheets and to allow a separate thread to perform the operation.

See Also

Running a Print Operation

- runOperationModalForWindow:delegate:didRunSelector:contextInfo:

Runs the print operation, calling your custom delegate method upon completion.

- cleanUpOperation

Called at the end of a print operation to remove the receiver as the current operation.

- deliverResult

Delivers the results of the print operation to the intended destination.