outlineView(_:tintConfigurationForItem:)
Customizes an item’s tinting behavior.
Declaration
@MainActor optional func outlineView(_ outlineView: NSOutlineView, tintConfigurationForItem item: Any) -> NSTintConfiguration?Parameters
- outlineView:
The outline view to which you apply the tinting behavior.
- item:
The item to which you apply the tinting behavior.
Return Value
Returns a new NSTintConfiguration object to create a particular tinting behavior for the item’s row, or nil to inherit the tinting behavior from the item’s parent.
Discussion
You typically use this method to customize the color for a sidebar.