Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSTableDataSourceMBS class.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
event | Cocoa Controls | MBS MacControls Plugin | 8.4 | ✅ Yes | ❌ No | ❌ No | ❌ No |
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 |
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 |
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 |
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 |
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.