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

# tableView

The [`NSTableView`](/documentation/AppKit/NSTableView) instance that this table header view belongs to.

```
weak var tableView: NSTableView? { get set }
```

## Discussion

You should never need to set this property; it’s assigned automatically when you set the header view for an `NSTableView`.

## See Also

[`class NSTableView`](/documentation/AppKit/NSTableView)

A set of related records, displayed in rows that represent individual records and columns that represent the attributes of those records.

[`var headerView: NSTableHeaderView?`](/documentation/AppKit/NSTableView/headerView)

The view object used to draw headers over columns.



---

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)