<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSSavePanel/canSelectHiddenExtension",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSSavePanel(py)canSelectHiddenExtension"
  },
  "title" : "canSelectHiddenExtension"
}
-->

# canSelectHiddenExtension

A Boolean value that indicates whether the panel displays UI for hiding or showing filename extensions.

```
var canSelectHiddenExtension: Bool { get set }
```

## Discussion

Set the value of this property before displaying the panel. When the value of this property is <doc://com.apple.documentation/documentation/Swift/true>, and the Finder preference “Show all extensions” is <doc://com.apple.documentation/documentation/Swift/false>, the panel displays the Hide Extension menu item. The default value of this property is <doc://com.apple.documentation/documentation/Swift/false>.

Use the [`isExtensionHidden`](/documentation/AppKit/NSSavePanel/isExtensionHidden) property to hide or shows extensions.

---

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)