Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSTableDataSourceMBS class.

NSTableDataSourceMBS.Close

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No
The event is called when the datasource is destroyed.

NSTableDataSourceMBS.numberOfRowsInTableView as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No
Called when the table view needs to know the number of rows.

numberOfRowsInTableView is called very frequently, so it must be efficient.

NSTableDataSourceMBS.objectValue(column as NSTableColumnMBS, row as Integer) as Variant

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No
Called when a value is required for a given cell.

Please implement your own arrays to store values.

NSTableDataSourceMBS.setObjectValue(value as Variant, column as NSTableColumnMBS, row as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No
Called when a cell value is saved to the datasource.

NSTableDataSourceMBS.sortDescriptorsDidChange(oldDescriptors() as NSSortDescriptorMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event Cocoa Controls MBS MacControls Plugin 17.1 ✅ Yes ❌ No ❌ No ❌ No
Called by TableView to indicate that sorting may need to be done.

The data source typically sorts and reloads the data, and adjusts the selections accordingly. If you need to know the current sort descriptors and the data source doesn’t manage them itself, you can get the current sort descriptors by calling TableView.sortDescriptors function.

The items on this page are in the following plugins: MBS MacControls Plugin.


The biggest plugin in space...