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

# addTableColumn(_:)

Adds the specified column as the last column of the table view.

```
func addTableColumn(_ tableColumn: NSTableColumn)
```

## Parameters

`tableColumn`

The column to add to the table view.

## See Also

[`-  sizeLastColumnToFit`](/documentation/AppKit/NSTableView/sizeLastColumnToFit())

Resizes the last column so the table view fits exactly within its enclosing clip view.



---

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)