outlineView(_:willDisplayCell:for:item:)
Informs the delegate that the cell specified by the column and item will be displayed.
Declaration
@MainActor optional func outlineView(_ outlineView: NSOutlineView, willDisplayCell cell: Any, for tableColumn: NSTableColumn?, item: Any)Parameters
- outlineView:
The outline view that sent the message.
- cell:
The cell.
- tableColumn:
The table column.
- item:
The item.
Discussion
The delegate can implement this method to modify cell to provide further setup for the cell in tableColumn and item. It is not safe to do drawing inside this method—you should only set up state for cell.