Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSTableViewMBS class.

Previous items

NSTableViewMBS.numberOfSelectedRows as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the number of selected rows.

(Read only property)

NSTableViewMBS.rowActionsVisible as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 17.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
A Boolean value indicating whether a table row’s actions are visible.

This property contains a Boolean value indicating whether a table row’s actions are visible or not—the user has swiped the row to reveal the row actions. Set the value of this property to false to hide any visible row actions. Setting the value of this property to true is not supported, and will result in an exception.
(Read and Write property)

NSTableViewMBS.rowHeight as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the height of each row in the receiver.

The default row height is 16.0.
(Read and Write property)

NSTableViewMBS.rowSizeStyle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 13.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The row size used by the tableview: small, medium, large, or on a custom row by row basis.

The row size style can be modified on a row by row basis by invoking the event heightOfRow, if implemented.

The rowSizeStyle defaults to NSTableViewRowSizeStyleCustom. NSTableViewRowSizeStyleCustom indicates to use the rowHeight of the table, instead of the pre-determined system values.

Generally, rowSizeStyle should always be NSTableViewRowSizeStyleCustom except for "source lists". To implement variable row heights, set the value to NSTableViewRowSizeStyleCustom and implement tableView:heightOfRow: in the delegate.

Available in OS X v10.7 and later.
(Read and Write property)

NSTableViewMBS.selectedColumn as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the index of the last column selected or added to the selection.

Returns the index of the last column selected or added to the selection, or –1 if no column is selected.
(Read only property)

NSTableViewMBS.selectionHighlightStyle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The selection highlight style used by the receiver to indicate row and column selection.

Available in Mac OS X v10.5 and later.
(Read and Write property)

NSTableViewMBS.style as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 21.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The table view style.
Example
dim tableView as NSTableViewMBS // your table view

tableView.style = NSTableViewMBS.NSTableViewStyleFullWidth

Defaults to NSTableViewStyleAutomatic.
For macOS 11.0 or newer.

Available styles:
NSTableViewStyleFullWidthThe table view style resolves to a full-width style.
NSTableViewStyleInsetThe table view style resolves to an inset style.
NSTableViewStyleSourceListThe table view style resolves to a source-list style.
NSTableViewStylePlainThe table view style resolves to a plain style.
(Read and Write property)

NSTableViewMBS.usesStaticContents as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 17.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
A Boolean value indicating whether the table uses static data.

A static table does not rely on a data source to provide the number of rows. A static table view’s contents are set at design time and can be changed programmatically as needed. Typically, you do not change the contents of a static table view after setting them.
In Xcode, any rows you add to a static table are saved in the corresponding nib or storyboard file and loaded with the rest of the table at runtime. You can add table rows programmatically to a static table view using the insertRowsAtIndexes method. When adding rows programmatically, your table view delegate must implement the view method to provide the corresponding view for any new rows. You can also remove rows at any time using the removeRowsAtIndexes method.

A table with static contents must be an NSView-based table view.

Available in macOS 10.10 or later.
(Read and Write property)

NSTableViewMBS.verticalMotionCanBeginDrag as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether vertical motion is treated as a drag or selection change to flag.

If flag is false then vertical motion will not start a drag. The default is true.

Note that horizontal motion is always a valid motion to begin a drag. Most often, you would want to disable vertical dragging when it's expected that horizontal dragging is the natural motion.
(Read and Write property)

Previous items

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


💬 Ask a question or report a problem
The biggest plugin in space...