---
title: currentContentType
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nssavepanel/currentcontenttype
---

# currentContentType

NSSavePanel:The current type. If set to nil, resets to the first allowed content type. Returns nil if allowedContentTypes is empty. NSOpenPanel: Not used.

## Declaration

```swift
var currentContentType: UTType? { get set }
```

## Discussion

Discussion note: Asserts that currentContentType conforms to UTTypeData or UTTypeDirectory.
