<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 10.3.0 - 10.6.0"
  ],
  "documentType" : "symbol",
  "framework" : "ObjectiveC",
  "identifier" : "/documentation/ObjectiveC/NSObject-swift.class/panel:directoryDidChange:",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Objective-C Runtime"
    ],
    "preciseIdentifier" : "c:objc(cs)NSObject(im)panel:directoryDidChange:"
  },
  "title" : "panel:directoryDidChange:"
}
-->

# panel:directoryDidChange:

Tells the delegate that the user has changed the selected directory in the `NSSavePanel` object specified.

```
- (void) panel:(id) sender directoryDidChange:(NSString *) path;
```

## Parameters

`sender`

Panel whose directory has changed.

`path`

String representing the new directory’s path.

## See Also

  <doc://com.apple.documentation/documentation/AppKit/NSOpenSavePanelDelegate/panel(_:didChangeToDirectoryURL:)>



---

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)