O'Reilly logo

Cocoa in a Nutshell by James Duncan Davidson, Michael Beam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

NSPageLayout — Mac OS X 10.0

Synopsis

This class implements the Mac OS X Page Layout panel, with which users can specify page layout information such as the paper size and orientation. Page layout objects are created with the class layout pageLayout. The panel is made visible by invoking either runModal, or runModalWithPrintInfo:. Alternatively, the page layout panel may be displayed as a sheet.

image with no caption

@interface NSPageLayout : NSObject
                                  // Accessor Methods
   - (void)setAccessoryView:(NSView *)aView;
   - (NSView *)accessoryView;
   - (NSView *)accessoryView;
   - (void)setAccessoryView:(NSView *)aView;
                                  // Class Methods
   + (NSPageLayout *)pageLayout;
   + (NSPageLayout *)pageLayout;
                                  // Instance Methods
   - (void)beginSheetWithPrintInfo:(NSPrintInfo *)printInfo
                                 modalForWindow:(NSWindow *)docWindow 
                                 delegate:(id)delegate 
                                 didEndSelector:(SEL)didEndSelector
                                 contextInfo:(void *)contextInfo;
   - (void)convertOldFactor:(float *)oldFactor 
                                 newFactor:(float *)newFactor;
   - (void)pickedButton:(id)sender;
   - (void)pickedOrientation:(id)sender;
   - (void)pickedPaperSize:(id)sender;
   - (void)pickedUnits:(id)sender;
   - (NSPrintInfo *)printInfo;
   - (NSPrintInfo *)printInfo;
   - (void)readPrintInfo;
   - (void)readPrintInfo;
   - (int)runModal;
   - (int)runModal;
   - (int)runModalWithPrintInfo:(NSPrintInfo *)pInfo;
   - (int)runModalWithPrintInfo:(NSPrintInfo *)pInfo;
   - (void)writePrintInfo ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required