<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSOpenSavePanelDelegate",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSOpenSavePanelDelegate"
  },
  "title" : "NSOpenSavePanelDelegate"
}
-->

# NSOpenSavePanelDelegate

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

```
protocol NSOpenSavePanelDelegate : NSObjectProtocol
```

## Topics

### Responding to the User’s Selection

[`panel(_:userEnteredFilename:confirmed:)`](/documentation/AppKit/NSOpenSavePanelDelegate/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(_:)`](/documentation/AppKit/NSOpenSavePanelDelegate/panelSelectionDidChange(_:))

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

[`panel(_:didChangeToDirectoryURL:)`](/documentation/AppKit/NSOpenSavePanelDelegate/panel(_:didChangeToDirectoryURL:))

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

[`panel(_:willExpand:)`](/documentation/AppKit/NSOpenSavePanelDelegate/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(_:shouldEnable:)`](/documentation/AppKit/NSOpenSavePanelDelegate/panel(_:shouldEnable:))

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

[`panel(_:validate:)`](/documentation/AppKit/NSOpenSavePanelDelegate/panel(_:validate:))

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



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)