---
title: allowedContentTypes
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nssavepanel/allowedcontenttypes
---

# allowedContentTypes

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

## Declaration

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

## Discussion

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 is YES, the system presents another dialog when prompting you to save.

## See Also

### Configuring the File Types

- [allowsOtherFileTypes](appkit/nssavepanel/allowsotherfiletypes.md)
- [treatsFilePackagesAsDirectories](appkit/nssavepanel/treatsfilepackagesasdirectories.md)
