Instance Method

tableView:willDisplayCell:forTableColumn:row:

Tells the delegate that the table view will display the specified cell at the specified row and column.

Declaration

- (void)tableView:(NSTableView *)tableView willDisplayCell:(id)cell forTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row;

Parameters

aTableView

The table view that sent the message.

aCell

The cell to be displayed.

aTableColumn

The table column.

rowIndex

The row index.

Discussion

The delegate can modify the display attributes of aCell to alter the appearance of the cell.

Because aCell is reused for every row in aTableColumn, the delegate must set the display attributes both when drawing special cells and when drawing standard cells.

See Also

Providing Cells for Rows and Columns

- tableView:dataCellForTableColumn:row:

Asks the delegate for a custom data cell for the specified row and column.

- tableView:shouldShowCellExpansionForTableColumn:row:

Asks the delegate if an expansion tooltip should be displayed for a specific row and column.

- tableView:toolTipForCell:rect:tableColumn:row:mouseLocation:

Asks the delegate for a string to display in a tooltip for the specified cell in the column and row.