numberOfRows(in:)
Returns the number of records managed for aTableView by the data source object.
Declaration
@MainActor optional func numberOfRows(in tableView: NSTableView) -> IntParameters
- tableView:
The table view that sent the message.
Return Value
The number of rows in aTableView.
Discussion
An instance of NSTableView uses this method to determine how many rows it should create and display. Your numberOfRows(in:) implementation is called very frequently, so it must be efficient.
Both view-based table views and cell-based table views must implement this method.
See Also
Related Documentation
- Table View Programming Guide for Mac