NSTableViewDelegate
A set of optional methods you implement in a table view delegate to customize the behavior of the table view.
Declaration
protocol NSTableViewDelegate : NSControlTextEditingDelegateOverview
Using a table view delegate allows you to customize a table view’s behavior without creating a table view subclass. A table view delegate provides views for table rows and columns, and supports functionality such as column reordering and resizing and row selection. To learn more about table views, see NSTableView.
Topics
Providing views for rows and columns
Notification of row views being added or removed
Grouping rows
Providing cells for rows and columns
tableView(_:willDisplayCell:for:row:)tableView(_:dataCellFor:row:)tableView(_:shouldShowCellExpansionFor:row:)tableView(_:toolTipFor:rect:tableColumn:row:mouseLocation:)
Editing cells
Setting row and column size
Selecting rows
selectionShouldChange(in:)tableView(_:shouldSelectRow:)tableView(_:selectionIndexesForProposedSelection:)tableView(_:shouldSelect:)tableViewSelectionIsChanging(_:)tableViewSelectionDidChange(_:)tableView(_:shouldTypeSelectFor:withCurrentSearch:)tableView(_:typeSelectStringFor:row:)tableView(_:nextTypeSelectMatchFromRow:toRow:for:)
Moving and resizing columns
tableView(_:shouldReorderColumn:toColumn:)tableView(_:didDrag:)tableViewColumnDidMove(_:)tableViewColumnDidResize(_:)