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

# autosavesConfiguration

A Boolean value that indicates whether the toolbar autosaves its configuration.

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

## Discussion

When the value of this property is <doc://com.apple.documentation/documentation/Swift/true>, the toolbar automatically writes any configuration changes to user defaults. It associates the configuration details with the value in its identifier property. If mutliple toolbars share the same identifier, they all share the same configuration settings. When the value of this property is <doc://com.apple.documentation/documentation/Swift/false>, the toolbar doesn’t save changes and reverts to the default configuration when the app relaunches.

The default of this property is <doc://com.apple.documentation/documentation/Swift/false>.

> Important:
> If you allow people to customize your app’s toolbars, enable this property to save the changes they make. Alternatively, use the ``doc://com.apple.appkit/documentation/AppKit/NSToolbar/configuration`` property and ``doc://com.apple.appkit/documentation/AppKit/NSToolbar/setConfiguration(_:)`` method to manage the autosave process yourself.

## See Also

[`allowsUserCustomization`](/documentation/AppKit/NSToolbar/allowsUserCustomization)

A Boolean value that indicates whether users can modify the contents of the toolbar.



---

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)