# NSPageLayout

fedor@gnu.org
cehardin@mac.com
Generated at 2026-02-17 21:02:56 +0000

Standard panel for querying user about page layout.

2001,2004 Free Software Foundation, Inc.
NSPageLayout

NSPageLayout provides a panel that allows the user to specify certain information about the printer and how data is formatted for printing. This includes information about the paper size and orientation. Typically you would create a page layout panel with the +pageLayout class method. However, the best way to use the panel is to have the application call the runPageLayout: method in the NSApplication object which would both create a standard NSPageLayout panel and display it in a modal loop. This method would be sent up the responder chain if the user clicked on a Page Layout menu item.

AppKit/NSPageLayout.h
Description forthcoming.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
pageLayout
Creates (if needed) and returns a shared instance of the NSPageLayout panel.
accessoryView

Returns the accessory view for the page layout panel.

See Also: -setAccessoryView:

beginSheetWithPrintInfo:
printInfo
modalForWindow:
docWindow
delegate:
delegate
didEndSelector:
didEndSelector
contextInfo:
contextInfo
Description forthcoming.
convertOldFactor:
old
newFactor:
newFactor
This method has been depreciated. It doesn't do anything useful.
pickedButton:
sender
This method has been depreciated. It doesn't do anything useful.
pickedOrientation:
sender
This method has been depreciated. It doesn't do anything useful.
pickedPaperSize:
sender
This method has been depreciated. It doesn't do anything useful.
pickedUnits:
sender
This method has been depreciated. It doesn't do anything useful.
printInfo
Return the NSPrintInfo object that the receiver stores layout information into.
readPrintInfo

Updates the receiver panel with information from its NSPrintInfo object.

See Also: -writePrintInfo

runModal

Display the Page Layout panel in a modal loop. Saves any aquired information in the shared NSPrintInfo object. Returns NSCancelButton if the user clicks the Cancel button or NSOKButton otherwise.

See Also: -runModalWithPrintInfo:

runModalWithPrintInfo:
printInfo

Displays the Page Layout panel in a modal loop. Saves any aquired information in the indicated NSPrintInfo object. Returns NSCancelButton if the user clicks the Cancel button or NSOKButton otherwise.

See Also: -runModal

setAccessoryView:
aView

Sets the accessory view for the page layout panel

See Also: -accessoryView

writePrintInfo

Writes any layout information set by the user to the receiver's NSPrintInfo object

See Also: -readPrintInfo

Software documentation for the NSApplication(NSPageLayout) category
AppKit/NSPageLayout.h
Description forthcoming.
runPageLayout:
sender
Description forthcoming.