Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSTableViewMBS class.
NSTableViewMBS.scrollColumnToVisible(column as Integer)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Controls | MBS MacControls Plugin | 8.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
NSTableViewMBS.scrollRowToVisible(row as Integer)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Controls | MBS MacControls Plugin | 8.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
NSTableViewMBS.ScrollToLine(Line as Integer, Animated as Boolean)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Controls | MBS MacControls Plugin | 16.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
If animated is true, the scroll is animated.
The line is centered in the middle of the viewable area if possible.
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Controls | MBS MacControls Plugin | 8.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
If the table allows multiple selection, this action method selects all rows or all columns, according to whether rows or columns were most recently selected. If nothing has been recently selected, this method selects all rows. If this table doesn't allow multiple selection, this method does nothing.
NSTableViewMBS.selectColumnIndexes(indexes as NSIndexSetMBS, extend as boolean)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Controls | MBS MacControls Plugin | 9.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
f the extend flag is false the selected columns are specified by indexes. If extend is true, the columns indicated by indexes are added to the collection of already selected columns, providing multiple selection.
NSTableViewMBS.selectedColumnIndexes as NSIndexSetMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Controls | MBS MacControls Plugin | 9.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Returns an index set containing the indexes of the selected columns.
NSTableViewMBS.selectedRowIndexes as NSIndexSetMBS
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Controls | MBS MacControls Plugin | 9.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Available in Mac OS X v10.3 and later.
Some examples using this method:
- /MacControls/Listbox and TableView Demos/ListboxTV drop-in/Flat Only/ListBoxTV Database with DataSource
- /MacControls/Listbox and TableView Demos/ListboxTV drop-in/Flat Only/ListBoxTV Simple Demo with DataSource
- /MacControls/Listbox and TableView Demos/ListboxTV drop-in/Flat Only/ListBoxTV TableView
- /MacControls/Listbox and TableView Demos/ListboxTV drop-in/Flat Only/ListboxTV with ContainerControl Cells
- /MacControls/Listbox and TableView Demos/ListboxTV drop-in/Hierarchical & Flat/ListBoxTV OutlineView
- /MacControls/Listbox and TableView Demos/NSOutlineView/Disk Browser
NSTableViewMBS.selectRowIndexes(indexes as NSIndexSetMBS, extend as boolean)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Controls | MBS MacControls Plugin | 9.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
If the extend flag is false the selected rows are specified by indexes. If extend is true, the rows indicated by indexes are added to the collection of already selected rows, providing multiple selection.
Available in Mac OS X v10.3 and later.
Some examples using this method:
- /MacControls/Listbox and TableView Demos/ListboxTV drop-in/Flat Only/ListBoxTV Database with DataSource
- /MacControls/Listbox and TableView Demos/ListboxTV drop-in/Flat Only/ListBoxTV Simple Demo with DataSource
- /MacControls/Listbox and TableView Demos/ListboxTV drop-in/Flat Only/ListBoxTV TableView
- /MacControls/Listbox and TableView Demos/ListboxTV drop-in/Flat Only/ListboxTV with ContainerControl Cells
- /MacControls/Listbox and TableView Demos/ListboxTV drop-in/Hierarchical & Flat/ListBoxTV OutlineView
NSTableViewMBS.setDraggingSourceOperationMask(mask as Integer, isLocal as Boolean)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Controls | MBS MacControls Plugin | 17.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
mask: The drag operation mask. See NSDragOperation for the supported values.
isLocal: True if the destination is the same application, otherwise false. In either case the specified mask value is archived and used.
NSTableViewMBS.setDropRow(row as Integer, dropOperation as Integer)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Controls | MBS MacControls Plugin | 17.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
row: The target row index.
dropOperation: The drop operation. Supported values are specified by NSTableViewDropOperation.
For example, to specify a drop on the second row, specify row as 1, and operation as NSTableViewDropOn. To specify a drop below the last row, specify row as [self numberOfRows] and operation as NSTableViewDropAbove.
Passing a value of –1 for row and NSTableViewDropOn as the operation causes the entire table view to be highlighted rather than a specific row. This is useful if the data displayed by the table view does not allow the user to drop items at a specific row location.
NSTableViewMBS.setSortDescriptor(sortDescriptor as NSSortDescriptorMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Controls | MBS MacControls Plugin | 14.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
A table column is considered sortable if it has a sort descriptor that specifies the sorting direction, a key to sort by, and a selector defining how to sort.
The array of sort descriptors is archived. Sort descriptors persist along with other column information if an autosave name is set.
Calling setSortDescriptors may have the side effect of invoking the data source method tableViewSortDescriptorsDidChange.
NSTableViewMBS.setSortDescriptors(sortDescriptors() as NSSortDescriptorMBS)
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Controls | MBS MacControls Plugin | 14.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
A table column is considered sortable if it has a sort descriptor that specifies the sorting direction, a key to sort by, and a selector defining how to sort.
The array of sort descriptors is archived. Sort descriptors persist along with other column information if an autosave name is set.
Calling setSortDescriptors may have the side effect of invoking the data source method tableViewSortDescriptorsDidChange.
NSTableViewMBS.sizeLastColumnToFit
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Controls | MBS MacControls Plugin | 8.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Controls | MBS MacControls Plugin | 8.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
All columns are resized to the same size, up to a column's maximum size. This method then invokes tile.
NSTableViewMBS.sortDescriptors as NSSortDescriptorMBS()
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| method | Cocoa Controls | MBS MacControls Plugin | 14.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
The items on this page are in the following plugins: MBS MacControls Plugin.