(Preliminary Documentation) Copyright ã1994 by NeXT Computer, Inc.  All Rights Reserved.

NSPageLayout 

Inherits From:	NSPanel : NSWindow : NSResponder : NSObject 

Declared In:	appkit/NSPageLayout.h 

Creating an NSPageLayout Instance 

+ (NSPageLayout *)pageLayout	Returns a default NSPageLayout object.

Running the Panel 

- (int)runModal	Displays the panel and begins its event loop.  The panel's values are recorded in the shared NSPrintInfo object.
- (int)runModalWithPrintInfo:(NSPrintInfo *)pInfo	
	Displays the panel and begins its event loop.  The panel's values are recorded in the pInfo, the supplied NSPrintInfo object.

Customizing the Panel 

- (NSView *)accessoryView	Returns the NSPageLayout's accessory View.
- (void)setAccessoryView:(NSView *)aView	Adds a View to the panel.

Updating the Panel's Display 

- (void)convertOldFactor:(float *)old	 Returns by reference the ratio between a point and the
newFactor:(float *)new	 	currently chosen unit of measurement.  If invoked within the pickedUnits: method, old refers to the ratio before the user's choice and new refers to the new ratio.
- (void)pickedButton:(id)sender	Stops the event loop.
- (void)pickedOrientation:(id)sender	Updates the panel with the selected orientation.
- (void)pickedPaperSize:(id)sender	Updates the panel when a paper size is selected.
- (void)pickedUnits:(id)sender	Updates the panel when a new unit is selected.
- (void)textDidEnd:(NSText *)textObject	Updates the panel when the user finishes typing a page size.
endChar:(unsigned short)theChar	
- (BOOL)textShouldChange:(NSText *)textObject Updates the panel when a page size is typed.

Communicating with the NSPrintInfo Object 

- (NSPrintInfo *)printInfo	Returns the NSPrintInfo object that used when the panel is run.
- (void)readPrintInfo	Reads the NSPageLayout's values from the NSPrintInfo object.
- (void)writePrintInfo	Writes the NSPageLayout's values to the NSPrintInfo object.