Class

NSPageLayout

A panel that queries the user for information such as paper type and orientation.

Declaration

@interface NSPageLayout : NSObject

Overview

A page layout is typically displayed in response to the user selecting the Page Setup menu item. You obtain an instance with the pageLayout class method. The pane can then be run as a sheet using beginSheetWithPrintInfo:modalForWindow:delegate:didEndSelector:contextInfo: or modally using runModal or runModalWithPrintInfo:.

Topics

Creating an NSPageLayout Instance

+ pageLayout

Returns a newly created NSPageLayout object.

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.

- runModalWithPrintInfo:

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

Customizing the Page Setup Dialog

- addAccessoryController:

Adds the given controller of an accessory view to be presented in the page setup panel.

- removeAccessoryController:

Removes the given controller of an accessory view.

accessoryControllers

An array of accessory view controllers belonging to the receiver.

Accessing the NSPrintInfo Object

printInfo

The NSPrintInfo object used when the receiver is run.

Deprecated Methods

- accessoryView

Returns the receiver’s accessory view (used to customize the receiver).

Deprecated
- setAccessoryView:

Adds a view object to the receiver.

Deprecated
- readPrintInfo

Sets the receiver’s values to those stored in the NSPrintInfo object used when the receiver is run.

Deprecated
- writePrintInfo

Writes the receiver’s values to the NSPrintInfo object used when the receiver is run.

Deprecated

Relationships

Inherits From

See Also

Print Panels

NSPrintPanel

The Print panel that queries the user for information about a print job.