tableView(_:shouldShowCellExpansionFor:row:)
Asks the delegate if an expansion tooltip should be displayed for a specific row and column.
Declaration
@MainActor optional func tableView(_ tableView: NSTableView, shouldShowCellExpansionFor tableColumn: NSTableColumn?, row: Int) -> BoolParameters
- tableView:
The table view that sent the message.
- tableColumn:
The table column.
- row:
The row index.
Return Value
true if an expansion tooltip should be displayed, false otherwise.
Discussion
An expansion tooltip can be displayed when the pointer hovers over a cell that contains truncated text. When this method returns true, the cell’s full contents is shown in an expansion tooltip, which looks similar to a help tag.