Contents

outlineView(_:rowViewForItem:)

implement this method to return a custom NSTableRowView for a particular item.

Declaration

@MainActor optional func outlineView(_ outlineView: NSOutlineView, rowViewForItem item: Any) -> NSTableRowView?

Parameters

  • outlineView:

    The outline view that sent the message.

  • item:

    The item displayed by the returned table row view.

Return Value

An instance or subclass of NSTableRowView. If nil is returned, a NSTableRowView instance is created and used.

Discussion

This method, if implemented, is only invoked for NSView-based outline views.

See Also

Working with NSView-Based Outline Views