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

# autosaveTableColumns

A Boolean value indicating whether the order and width of the table view’s columns are automatically saved.

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

## Discussion

When this property is set to <doc://com.apple.documentation/documentation/Swift/true>, the table information is saved separately for each user and application under the name specified in the [`autosaveName`](/documentation/AppKit/NSTableView/autosaveName-swift.property) property. If you change the value of this property from <doc://com.apple.documentation/documentation/Swift/false> to <doc://com.apple.documentation/documentation/Swift/true>, the table tries to read in any saved information and sets the order and width of this table view’s columns to match. If the [`autosaveName`](/documentation/AppKit/NSTableView/autosaveName-swift.property) property is `nil`, this setting is ignored and the table information is not read or saved.

When autosave is enabled, the table saves the table column width, the table column order, any applied sort descriptors, and the table column hidden state (in macOS 10.5 and later).

---

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)