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
Scrolls the receiver and header view horizontally in an enclosing NSClipView so the column specified by columnIndex is visible.

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
Scrolls the receiver vertically in an enclosing NSClipView so the row specified by rowIndex is visible.

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
Scrolls to line.

If animated is true, the scroll is animated.
The line is centered in the middle of the viewable area if possible.

NSTableViewMBS.selectAll

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Controls MBS MacControls Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Selects all rows or all columns, according to whether rows or columns were most recently selected.

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
Sets the column selection using indexes.

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.

Returns an index set containing the indexes of the selected columns.

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
Sets the row selection using indexes.

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:

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
Sets the default operation mask returned by draggingSourceOperationMaskForLocal to mask.

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
Retargets the proposed drop operation.

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
Sets the receiver's sort descriptors.

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
Sets the receiver's sort descriptors.

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
Resizes the last column if there's room so the receiver fits exactly within its enclosing clip view.

NSTableViewMBS.sizeToFit

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa Controls MBS MacControls Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Changes the width of columns in the receiver so all columns are visible.

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
Returns the receiver’s sort descriptors.

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


The biggest plugin in space...