Instance Method

runModalWithPrintInfo:

Displays the receiver and begins the modal loop using the given NSPrintInfo object.

Declaration

- (NSInteger)runModalWithPrintInfo:(NSPrintInfo *)printInfo;

Parameters

printInfo

The NSPrintInfo object to use.

Return Value

NSCancelButton if the user clicks the Cancel button; otherwise, NSOKButton.

Discussion

The receiver’s values are recorded in printInfo.

See Also

Running a Page Setup Dialog

- beginSheetWithPrintInfo:modalForWindow:delegate:didEndSelector:contextInfo:

Presents a page setup sheet for the given NSPrintInfo object, document-modal relative to the given window.

- runModal

Displays the receiver and begins the modal loop using the shared NSPrintInfo object.