Instance Method

tableView(_:shouldEdit:row:)

Asks the delegate if the cell at the specified row and column can be edited.

Declaration

optional func tableView(_ tableView: NSTableView, shouldEdit tableColumn: NSTableColumn?, row: Int) -> Bool

Parameters

aTableView

The table view that sent the message.

aTableColumn

The table column.

rowIndex

The row index.

Return Value

true to allow editing the cell, false to deny editing.

Discussion

The delegate can implement this method to disallow editing of specific cells.