<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTableView/reloadData()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTableView(im)reloadData"
  },
  "title" : "reloadData()"
}
-->

# reloadData()

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

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

> Note:
> For ``doc://com.apple.appkit/documentation/AppKit/NSView``-based table views, this method drops all the visible row views and cell views, and re-acquires them all.

## See Also

[`noteHeightOfRows(withIndexesChanged:)`](/documentation/AppKit/NSTableView/noteHeightOfRows(withIndexesChanged:))

Informs the table view that the rows specified in `indexSet` have changed height.

[`frameOfCell(atColumn:row:)`](/documentation/AppKit/NSTableView/frameOfCell(atColumn:row:))

Returns a rectangle locating the cell that lies at the intersection of the specified column and row.

[`noteNumberOfRowsChanged()`](/documentation/AppKit/NSTableView/noteNumberOfRowsChanged())

Informs the table view that the number of records in its data source has changed.

[`rect(ofColumn:)`](/documentation/AppKit/NSTableView/rect(ofColumn:))

Returns the rectangle containing the column at the specified index.

[`rect(ofRow:)`](/documentation/AppKit/NSTableView/rect(ofRow:))

Returns the rectangle containing the row at the specified index.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)