tableView(_:setObjectValue:for:row:)
Sets the data object for an item in the specified row and column.
Declaration
@MainActor optional func tableView(_ tableView: NSTableView, setObjectValue object: Any?, for tableColumn: NSTableColumn?, row: Int)Parameters
- tableView:
The table view that sent the message.
- object:
The new value for the item.
- tableColumn:
A column in
aTableView. - row:
The row of the item in
aTableColumn.
Discussion
This method is intended for use with cell-based table views, it must not be used with view-based table views. In view-based tables, use target/action to set each item in the view cell.