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

# browser(_:headerViewControllerForItem:)

Asks the delegate for a controller that provides a header view for the specified column item.

```
@MainActor optional func browser(_ browser: NSBrowser, headerViewControllerForItem item: Any?) -> NSViewController?
```

## Parameters

`browser`

The browser.

`item`

The column item.

## Return Value

A view controller that provides a header view, or `nil` to omit the header view.

## Discussion

The returned controller’s represented object will be set to the column item. This method is called only if the delegate implements the item data source methods.

---

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)