Instance Method

tableView(_:setObjectValue:for:row:)

Sets the data object for an item in the specified row and column.

Declaration

optional func tableView(_ tableView: NSTableView, setObjectValue object: Any?, for tableColumn: NSTableColumn?, row: Int)

Parameters

aTableView

The table view that sent the message.

anObject

The new value for the item.

aTableColumn

A column in aTableView.

rowIndex

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.