Instance Method


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


func reloadData()


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 frameOfCell(atColumn:row:), rect(ofColumn:), or rect(ofRow:) in conjunction with the setNeedsDisplay(_:) method of NSView. If you just want to update the scroller, use noteNumberOfRowsChanged(); if the height of a set of rows changes, use noteHeightOfRows(withIndexesChanged:).

See Also

Managing the Table's Data

var dataSource: NSTableViewDataSource?

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

var usesStaticContents: Bool

A Boolean value indicating whether the table uses static data.

func reloadData(forRowIndexes: IndexSet, columnIndexes: IndexSet)

Reloads the data for only the specified rows and columns.