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

# cornerView

The view used to draw the area to the right of the column headers and above the vertical scroller of the enclosing scroll view.

```
var cornerView: NSView? { get set }
```

## Return Value

The view used to draw the area to the right of the column headers and above the vertical scroller of the enclosing `NSScrollView` object.

## Discussion

The default corner view draws a bezeled rectangle using a blank [`NSTableHeaderCell`](/documentation/AppKit/NSTableHeaderCell) object, but you can replace it with a custom view that displays an image, or with a control that can handle mouse events, such as a Select All button. Your custom corner view should be as wide as a vertical [`NSScroller`](/documentation/AppKit/NSScroller) object and as tall as the header view of the table 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)