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

# autosaveName

The name under which table information is automatically saved.

```
var autosaveName: NSTableView.AutosaveName? { get set }
```

## Discussion

The table information is saved separately in user defaults for each user and for each application that user uses. If no name has been set, the value of this property is `nil`. Even when a table view has an autosave name, it only saves the table information when the [`autosaveTableColumns`](/documentation/AppKit/NSTableView/autosaveTableColumns) property is <doc://com.apple.documentation/documentation/Swift/true>.

If you change the value of this property to a new name, the table reads in any saved information and sets the order and width of this table view’s columns to match. Setting the name to `nil` removes any previously stored state from the user defaults.

---

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)