A set of methods that a delegate of NSOpen
or NSSave
should implement.
SDK
- macOS 10.6+
Framework
- App
Kit
Declaration
@protocol NSOpenSavePanelDelegate
A set of methods that a delegate of NSOpen
or NSSave
should implement.
SDK
Framework
@protocol NSOpenSavePanelDelegate
- panel: should Enable URL:
For NSOpen
delegates, asks the delegate whether the specified URL should be enabled in the panel. This method is not called for NSSave
delegates; all URLs are always disabled.
- panel: validate URL: error:
For NSSave
delegates, asks the delegate for file URL validation when the user chooses the Save button. For NSOpen
delegates, asks the delegate for file URL validation once for each selected filename (or directory) when the user chooses the Open button.
- panel: did Change To Directory URL:
Informs the delegate that the user changed the selected directory to the directory located at the specified URL. The URL may be nil
if the current URL can’t be represented by an NSURL
object.
- panel: user Entered Filename: confirmed:
Tells the delegate that the user confirmed a filename choice by clicking Save in a Save panel.
- panel: will Expand:
Tells the delegate that the Save panel is about to expand or collapse because the user clicked the disclosure triangle that displays or hides the file browser.
- panel Selection Did Change:
Tells the delegate that the user changed the selection in the specified Save panel.
NSOpen Panel
The Open panel for the Cocoa user interface.
NSSave Panel
A Save panel that you can run in a modal loop.