From 43c65a482955fa1474fc6b21e70a776b8582040c Mon Sep 17 00:00:00 2001
From: Fabien_
- Use the -filename or -filenames method to retrieve the name of the - file the user selected. + Use the [NSSavePanel-filename] or -filenames method to retrieve + the name of the file the user selected.
*/ @implementation NSOpenPanel diff --git a/Source/NSPageLayout.m b/Source/NSPageLayout.m index 29e6bf289..c5148c29d 100644 --- a/Source/NSPageLayout.m +++ b/Source/NSPageLayout.m @@ -239,7 +239,8 @@ enum { } -/** Creates and returns a shared instance of the NSPageLayout panel. +/** Creates ( if needed ) and returns a shared instance of the + NSPageLayout panel. */ + (NSPageLayout *)pageLayout { @@ -256,18 +257,20 @@ enum { // // Running the Panel // -/** Display the Page Layout panel in a modal loop. Saves any aquired +/**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. + if the user clicks the Cancel button or NSOKButton otherwise.
+See Also: -runModalWithPrintInfo:
*/ - (int)runModal { return [self runModalWithPrintInfo: [NSPrintInfo sharedPrintInfo]]; } -/** Display the Page Layout panel in a modal loop. Saves any aquired +/**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. + if the user clicks the Cancel button or NSOKButton otherwise.
+See Also: -runModal
*/ - (int)runModalWithPrintInfo:(NSPrintInfo *)printInfo { @@ -302,14 +305,16 @@ enum { // // Customizing the Panel // -/** Returns the accessory view for the page layout panel +/**Returns the accessory view for the page layout panel.
+See Also: -setAccessoryView:
*/ - (NSView *)accessoryView { return [_controller accessoryView]; } -/** Set the accessory view for the page layout panel +/**Sets the accessory view for the page layout panel
+See Also: -accessoryView
*/ - (void)setAccessoryView:(NSView *)aView { @@ -317,7 +322,6 @@ enum { } - /** This method has been depreciated. It doesn't do anything useful. */ - (void)convertOldFactor:(float *)old @@ -373,15 +377,16 @@ enum { return [_controller printInfo]; } -/** Updates the receiver panel with information from its NSPrintInfo object +/**Updates the receiver panel with information from its NSPrintInfo object. +
See Also: -writePrintInfo
*/ - (void)readPrintInfo { [_controller readPrintInfo]; } -/** Writes any layout information set by the user to the receiver's - NSPrintInfo object +/**Writes any layout information set by the user to the receiver's + NSPrintInfo object
See Also: -readPrintInfo
*/ - (void)writePrintInfo {