Contents

tableView(_:shouldSelect:)

Asks the delegate whether the specified table column can be selected.

Declaration

@MainActor optional func tableView(_ tableView: NSTableView, shouldSelect tableColumn: NSTableColumn?) -> Bool

Parameters

  • tableView:

    The table view that sent the message.

  • tableColumn:

    The table column.

Return Value

true to permit selection, otherwise false.

Discussion

The delegate can implement this method to disallow selection of particular columns.

See Also

Selecting rows