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

# identifier

Sets and returns the identifier.

## Declaration

```swift
var identifier: NSUserInterfaceItemIdentifier? { get set }
```

## Discussion

Discussion The panel’s current state such as the root directory and the current directory are saved and restored relative to the identifier. note: When the identifier is changed, the properties that depend on the identifier are updated from user defaults. Properties that have a null value in user defaults are not changed (and keep their existing value). note: Can only be set during the configuration phase.
