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

# headerView

The view object used to draw headers over columns.

```
var headerView: NSTableHeaderView? { get set }
```

## Discussion

To configure a table without a header view or to remove the table view’s current header view, set the value of this property to `nil`. For more information about header views, see [`NSTableHeaderView`](/documentation/AppKit/NSTableHeaderView).

---

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)