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

# allowedContentTypes

An array of types that specify the files types to which you can save.

```
var allowedContentTypes: [UTType] { get set }
```

## Discussion

Defaults to an empty array that indicates that you can use any file type. If you don’t provide an extension, the system uses the first preferred extension in the array for the save panel. If you specify a type that isn’t in the array and [`allowsOtherFileTypes`](/documentation/AppKit/NSSavePanel/allowsOtherFileTypes) is `YES`, the system presents another dialog when prompting you to save.

---

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)