---
title: noteNumberOfRowsChanged()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nstableview/notenumberofrowschanged()
---

# noteNumberOfRowsChanged()

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

## Declaration

```swift
func noteNumberOfRowsChanged()
```

## Discussion

Discussion This method allows the table view to update the scrollers in its scroll view without actually reloading data into the table view. It’s useful for a data source that continually receives data in the background over a period of time, in which case the table view can remain responsive to the user while the data is received. See the NSTableViewDataSource protocol specification for information on the messages an NSTableView object sends to its data source. note: When using NSView-based table views this method should be avoided. The table will query the data source for the new number of rows, and properly insert (or remove) rows at the end of the table as necessary with an animation. When using NSCell-based table views this method tells the table that there may be more (or less) rows available and to reload state based on that information. This method does not work for NSOutlineView, and should not be called.

## See Also

### Related Documentation

- [reloadData()](appkit/nstableview/reloaddata().md)
- [numberOfRows(in:)](appkit/nstableviewdatasource/numberofrows(in:).md)

### Layout Support

- [userInterfaceLayoutDirection](appkit/nstableview/userinterfacelayoutdirection.md)
- [rect(ofColumn:)](appkit/nstableview/rect(ofcolumn:).md)
- [rect(ofRow:)](appkit/nstableview/rect(ofrow:).md)
- [rows(in:)](appkit/nstableview/rows(in:).md)
- [columnIndexes(in:)](appkit/nstableview/columnindexes(in:).md)
- [column(at:)](appkit/nstableview/column(at:).md)
- [row(at:)](appkit/nstableview/row(at:).md)
- [frameOfCell(atColumn:row:)](appkit/nstableview/frameofcell(atcolumn:row:).md)
- [columnAutoresizingStyle](appkit/nstableview/columnautoresizingstyle-swift.property.md)
- [sizeLastColumnToFit()](appkit/nstableview/sizelastcolumntofit().md)
- [tile()](appkit/nstableview/tile().md)
- [sizeToFit()](appkit/nstableview/sizetofit().md)
- [noteHeightOfRows(withIndexesChanged:)](appkit/nstableview/noteheightofrows(withindexeschanged:).md)
