Instance Method

reloadData

Marks the table view as needing redisplay, so it will reload the data for visible cells and draw the new values.

Declaration

- (void)reloadData;

Discussion

This method forces a redraw of all the visible cells in the table view. If you want to update the value in a single cell, column, or row, it is more efficient to use frameOfCellAtColumn:row:, rectOfColumn:, or rectOfRow: in conjunction with the setNeedsDisplayInRect: method of NSView. If you just want to update the scroller, use noteNumberOfRowsChanged; if the height of a set of rows changes, use noteHeightOfRowsWithIndexesChanged:.

See Also

Managing the Table's Data

dataSource

The object that provides the data displayed by the table view.

usesStaticContents

A Boolean value indicating whether the table uses static data.

- reloadDataForRowIndexes:columnIndexes:

Reloads the data for only the specified rows and columns.