Instance Method

numberOfRowsInTableView:

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

Declaration

- (NSInteger)numberOfRowsInTableView:(NSTableView *)tableView;

Parameters

aTableView

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 numberOfRowsInTableView: 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

- tableView:objectValueForTableColumn:row:

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