Informs the table view that the number of records in its data source has changed.
SDK
- macOS 10.0+
Framework
- App
Kit
Declaration
- (void)noteNumberOfRowsChanged;
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 NSTable
protocol specification for information on the messages an NSTable
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 NSOutline
, and should not be called.