outlineView(_:shouldShowCellExpansionFor:item:)
Invoked to allow the delegate to control cell expansion for a specific column and item.
Declaration
@MainActor optional func outlineView(_ outlineView: NSOutlineView, shouldShowCellExpansionFor tableColumn: NSTableColumn?, item: Any) -> BoolParameters
- outlineView:
The outline view that sent the message.
- tableColumn:
A table column in the outline view.
- item:
An item in the outline view.
Return Value
true to allow an expansion tooltip to appear in the column tableColumn for item item, otherwise false.
Discussion
Cell expansion can occur when the mouse hovers over the specified cell and the cell contents are unable to be fully displayed within the cell. If this method returns true, the full cell contents will be shown in a special floating tool tip view, otherwise the content is truncated.