Protocol

NSOpenSavePanelDelegate

A set of methods for managing interactions with an open or save panel.

Declaration

@protocol NSOpenSavePanelDelegate

Topics

Responding to the User's Selection

- panel:userEnteredFilename:confirmed:

Tells the delegate that the user confirmed a filename choice by clicking Save in a Save panel.

Responding to Panel Changes

- panelSelectionDidChange:

Tells the delegate that the user changed the selection in the specified Save panel.

- panel:didChangeToDirectoryURL:

Tells the delegate that the user changed the selected directory to the directory located at the specified URL.

- panel:willExpand:

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.

Validating the Panel Content

- panel:shouldEnableURL:

Asks the delegate whether the specified URL should be enabled in the Open panel.

- panel:validateURL:error:

Asks the delegate to validate the URL for a file that the user selected.

Relationships

Inherits From

Conforming Types

See Also

Open and Save Panels

NSOpenPanel

A panel that prompts the user to select a file to open.

NSSavePanel

A panel that prompts the user for information about where to save a file.