Contents

browser(_:headerViewControllerForItem:)

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

Declaration

@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.

See Also

Accessing Components