Contents

rect(ofRow:)

Returns the rectangle containing the row at the specified index.

Declaration

func rect(ofRow row: Int) -> NSRect

Return Value

The rectangle containing the row at rowIndex. Returns NSZeroRect if rowIndex lies outside the range of valid row indexes for the table view.

Discussion

You can use this method to update a single row more efficiently than sending the table view a reloadData() message.

[aTableView setNeedsDisplayInRect:[aTableView rectOfRow:row]];

See Also

Layout Support