Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSTableViewMBS class.

NSTableViewMBS.allowsColumnReordering 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
Controls whether the user can drag column headers to reorder columns.

The default is true. You can rearrange columns programmatically regardless of this setting.
(Read and Write property)

NSTableViewMBS.allowsColumnResizing 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
A Boolean value that indicates whether the receiver allows the user to resize columns by dragging between their headers.

(Read and Write property)

NSTableViewMBS.allowsColumnSelection 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
Controls whether the user can select an entire column by clicking its header.

The default is false. You can select columns programmatically regardless of this setting.
(Read and Write property)

NSTableViewMBS.allowsEmptySelection 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
Controls whether the receiver allows zero rows or columns to be selected.

Unlike with the other settings that affect selection behavior, you cannot set an empty selection programmatically if empty selection is disallowed.
(Read and Write property)

NSTableViewMBS.allowsMultipleSelection 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
Controls whether the user can select more than one row or column at a time.

The default is false. You can select multiple columns or rows programmatically regardless of this setting.
(Read and Write property)

NSTableViewMBS.allowsTypeSelect 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 the receiver allows the user to type characters to select rows.

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

Some examples using this property:

NSTableViewMBS.autosaveName as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The name under which table information is automatically saved.

The table information is saved separately for each user and for each application that user uses.

Note that even when a table view has an autosave name, it may not be saving table information automatically.
(Read and Write property)

NSTableViewMBS.autosaveTableColumns 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 the order and width of this table view's columns are automatically saved.

If flag is different from the current value, this method also reads in the saved information and sets the table options to match.

The table information is saved separately for each user and for each application that user uses. Note that if autosaveName returns nil, this setting is ignored and table information isn't saved.
(Read and Write property)

NSTableViewMBS.backgroundColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The color used to draw the background of the receiver.

The default background color is light gray.
(Read and Write property)

NSTableViewMBS.clickedColumn 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 column the user clicked to trigger an action message.

The index of the column the user clicked to trigger an action message. Returns –1 if the user clicked in an area of the table view not occupied by columns.

Index is zero based.
(Read only property)

Some examples using this property:

NSTableViewMBS.clickedRow 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 row the user clicked to trigger an action message.

The index of the row the user clicked to trigger an action message. Returns –1 if the user clicked in an area of the table view not occupied by table rows.

Index is zero based.
(Read only property)

Some examples using this property:

NSTableViewMBS.cornerView as NSViewMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 9.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The view used to draw the area to the right of the column headers and above the vertical scroller of the enclosing scroll view.

This is by default a simple view that merely fills in its frame, but you can replace it with a custom view using this property.
(Read and Write property)

NSTableViewMBS.dataSource as NSTableDataSourceMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The object that provides the data displayed in the table view.

(Read and Write property)

NSTableViewMBS.draggingDestinationFeedbackStyle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The feedback style displayed when the user drags over the table view.

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

NSTableViewMBS.editedColumn 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 column being edited.

First column has index zero.
If sent during editColumn(), the index of the row being edited; otherwise –1.
(Read only property)

NSTableViewMBS.editedRow 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 row being edited.

The first row index is zero.
If sent during editColumn(), the index of the row being edited; otherwise –1.
(Read only property)

NSTableViewMBS.effectiveRowSizeStyle 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
Returns the effective row size style for the table.

If the rowSizeStyle is NSTableViewRowSizeStyleDefault, then this method returns the default size for this table.
The default size is currently set in the System Preferences by the users.
Available in OS X v10.7 and later.
(Read only property)

NSTableViewMBS.effectiveStyle 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 effective style when style is NSTableViewStyleAutomatic.

Otherwise, it returns the same value as style.
(Read only property)

NSTableViewMBS.floatsGroupRows 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 view draws grouped rows as if they are floating.

Group rows are rows for which the table view delegate’s isGroupRow method returns true. These rows can be displayed as if they are floating in a view-based table view.
The default value of this property is true.
(Read and Write property)

NSTableViewMBS.focusedColumn as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The currently focused column.

Returns the index of the column, or -1 if there is no focused column
The focus interaction will always be on the selectedRow of the table. If the selectedRow is a full width cell, then focusedColumn will return 1 when focused..
Available in Mac OS X v10.6 and later.
(Read and Write property)

NSTableViewMBS.gridColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 8.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The color used to draw grid lines.

The default color is gray.
(Read and Write property)

NSTableViewMBS.highlightedtableColumn as NSTableColumnMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 9.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The table column highlighted in the receiver.

A highlightable column header can be used in conjunction with row selection to highlight a particular column of the table. An example of this is how the Mail application indicates the currently sorted column.
(Read and Write property)

NSTableViewMBS.intercellSpacing as NSSizeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacControls Plugin 9.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The horizontal and vertical spacing between cells.

The default spacing is (3.0, 2.0).
(Read and Write property)

NSTableViewMBS.numberOfColumns 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 columns in the receiver.

The value returned includes table columns that are currently hidden.
(Read only property)

NSTableViewMBS.numberOfRows 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 rows in the receiver.

Typically you should not ask the table view how many rows it has; instead you should interrogate the table view's data source.
(Read only property)

NSTableViewMBS.numberOfSelectedColumns 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 columns.

(Read only property)

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)

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


The biggest plugin in space...