Instance Method


Returns the number of records managed for aTableView by the data source object.


optional func numberOfRows(in tableView: NSTableView) -> Int



The table view that sent the message.

Return Value

The number of rows in aTableView.


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

Getting Values

func tableView(NSTableView, objectValueFor: NSTableColumn?, row: Int) -> Any?

Called by the table view to return the data object associated with the specified row and column.