Platforms to show: All Mac Windows Linux Cross-Platform
NSTableColumnMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Cocoa Controls | MBS MacControls Plugin | 8.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
The NSTableColumn determines the width and width limits, resizability, and editability of its column in the NSTableView. It also stores two NSCell objects: the header cell, which is used to draw the column header, and the data cell, used to draw the values for each row. You can control the display of the column by setting the subclasses of NSCell used and by setting the font and other display characteristics for these NSCells. For example, you can use the default NSTextFieldCell for displaying string values or substitute an NSImageCell to display pictures.
- 14 properties
- property dataCell as NSCellMBS
- property Editable as boolean
- property headerCell as NSTableHeaderCellMBS
- property headerToolTip as string
- property Hidden as boolean
- property identifier as string
- property maxWidth as Double
- property minWidth as Double
- property Resizable as boolean
- property resizingMask as Integer
- property sortDescriptorPrototype as NSSortDescriptorMBS
- property tableView as NSTableViewMBS
- property title as String
- property width as Double
- 3 methods
- method Constructor(identifier as string)
- method dataCellForRow(row as Integer) as NSCellMBS
- method sizeToFit
- 3 constants
Constants
Constant | Value | Description |
---|---|---|
NSTableColumnAutoresizingMask | 1 | One of the constants specify the resizing modes available for the table column. Allows the table column to resize automatically in response to resizing the tableview. Enabling this option is the same as enabling the "Live Resizable" option in Interface Builder. The resizing behavior for the table view is set using the NSTableView method setColumnAutoresizingStyle:. more |
NSTableColumnNoResizing | 0 |
One of the constants specify the resizing modes available for the table column.
Prevents the table column from resizing. Available in Mac OS X v10.4 and later. |
NSTableColumnUserResizingMask | 2 |
One of the constants specify the resizing modes available for the table column.
Allows the table column to be resized explicitly by the user. Enabling this option is the same as enabling the "User Resizable" option in Interface Builder. Available in Mac OS X v10.4 and later. |
This class has no sub classes.
Some methods using this class:
- NSTableViewMBS.addTableColumn(column as NSTableColumnMBS)
- NSTableViewMBS.dragImageForRowsWithIndexes(dragRows as NSIndexSetMBS, tableColumns() as NSTableColumnMBS, theEvent as NSEventMBS, byref dragImageOffset as NSPointMBS) as NSImageMBS
- NSTableViewMBS.removeTableColumn(column as NSTableColumnMBS)
- NSTableViewMBS.tableColumns as NSTableColumnMBS()
- NSTableViewMBS.tableColumnWithIdentifier(identifier as string) as NSTableColumnMBS
Some properties using for this class:
- NSOutlineViewMBS.outlinetableColumn as NSTableColumnMBS
- NSTableViewMBS.highlightedtableColumn as NSTableColumnMBS
- NSTableViewMBS.indicatorImageInTableColumn(column as NSTableColumnMBS) as NSImageMBS
Some events using this class:
- DesktopNSOutlineControlMBS.didDragTableColumn(tableColumn as NSTableColumnMBS)
- DesktopNSOutlineControlMBS.objectValue(tableColumn as NSTableColumnMBS, item as NSOutlineViewItemMBS) as Variant
- DesktopNSOutlineControlMBS.shouldEdit(tableColumn as NSTableColumnMBS, item as NSOutlineViewItemMBS) as Boolean
- DesktopNSTableControlMBS.setObjectValue(value as Variant, column as NSTableColumnMBS, row as Integer)
- DesktopNSTableControlMBS.shouldShowCellExpansion(tableColumn as NSTableColumnMBS, row as Int64) as Boolean
- NSOutlineControlMBS.dataCell(tableColumn as NSTableColumnMBS, item as NSOutlineViewItemMBS) as NSCellMBS
- NSOutlineControlMBS.willDisplayOutlineCell(cell as NSCellMBS, tableColumn as NSTableColumnMBS, item as NSOutlineViewItemMBS)
- NSTableControlMBS.shouldSelectTableColumn(tableColumn as NSTableColumnMBS) as boolean
- NSTableViewMBS.ColumnDidResize(notification as NSNotificationMBS, column as NSTableColumnMBS, index as Integer)
- NSTableViewMBS.view(tableColumn as NSTableColumnMBS, row as Integer) as NSViewMBS
Some examples using this class:
- /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 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
- /MacControls/Listbox and TableView Demos/NSOutlineView/OutlineControl
- /MacControls/Outline View Test
- /MacControls/TableControl
- /MacFrameworks/Cocoa Controls/TableView
- /MacFrameworks/Cocoa Controls/TableView with scrollbars
Blog Entries
Xojo Developer Magazine
The items on this page are in the following plugins: MBS MacControls Plugin.
NSSwitchMBS - NSTableDataSourceMBS