Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSTableViewMBS class.
Row Size Style Constants
NSTableViewMBS.NSTableViewRowSizeStyleCustom = 0
Type | Topic | Plugin | Version |
const | Cocoa Controls | MBS MacControls Plugin | 13.4 |
The table will use the rowHeight or invoke the delegate method tableView:heightOfRow:, if implemented. The cell layout is not changed.
Available in OS X v10.7 and later.
The row size style constants define the size of the rows in the table view. They are used by the effectiveRowSizeStyle and rowSizeStyle methods. You can also query the row size in the NSTableCellView class' property rowSizeStyle.
NSTableViewMBS.NSTableViewRowSizeStyleDefault = -1
Type | Topic | Plugin | Version |
const | Cocoa Controls | MBS MacControls Plugin | 13.4 |
The table will use the system default layout size: small, medium or large.
Available in OS X v10.7 and later.
The row size style constants define the size of the rows in the table view. They are used by the effectiveRowSizeStyle and rowSizeStyle methods. You can also query the row size in the NSTableCellView class' property rowSizeStyle.
NSTableViewMBS.NSTableViewRowSizeStyleLarge = 3
Type | Topic | Plugin | Version |
const | Cocoa Controls | MBS MacControls Plugin | 13.4 |
The table will use a row height specified for a small table. It is required that the size be fully tested and supported if NSTableViewRowSizeStyleCustom is not used.
Available in OS X v10.7 and later.
The row size style constants define the size of the rows in the table view. They are used by the effectiveRowSizeStyle and rowSizeStyle methods. You can also query the row size in the NSTableCellView class' property rowSizeStyle.
NSTableViewMBS.NSTableViewRowSizeStyleMedium = 2
Type | Topic | Plugin | Version |
const | Cocoa Controls | MBS MacControls Plugin | 13.4 |
The table will use a row height specified for a medium table. It is required that the size be fully tested and supported if NSTableViewRowSizeStyleCustom is not used.
Available in OS X v10.7 and later.
The row size style constants define the size of the rows in the table view. They are used by the effectiveRowSizeStyle and rowSizeStyle methods. You can also query the row size in the NSTableCellView class' property rowSizeStyle.
NSTableViewMBS.NSTableViewRowSizeStyleSmall = 1
Type | Topic | Plugin | Version |
const | Cocoa Controls | MBS MacControls Plugin | 13.4 |
The table will use a row height specified for a small table. It is required that the size be fully tested and supported if NSTableViewRowSizeStyleCustom is not used.
Available in OS X v10.7 and later.
The row size style constants define the size of the rows in the table view. They are used by the effectiveRowSizeStyle and rowSizeStyle methods. You can also query the row size in the NSTableCellView class' property rowSizeStyle.
Styles
NSTableViewMBS.NSTableViewStyleAutomatic = 0
Type | Topic | Plugin | Version |
const | Cocoa Controls | MBS MacControls Plugin | 21.0 |
Automatically infers the effectiveStyle from the table view hierarchy.
NSTableViewMBS.NSTableViewStyleFullWidth = 1
Type | Topic | Plugin | Version |
const | Cocoa Controls | MBS MacControls Plugin | 21.0 |
Edge-to-edge style with standard content padding at the ends of each row. This content padding is constant and independent of intercellSpacing.
NSTableViewMBS.NSTableViewStyleInset = 2
Type | Topic | Plugin | Version |
const | Cocoa Controls | MBS MacControls Plugin | 21.0 |
Inset style with rounded corners selection
NSTableViewMBS.NSTableViewStylePlain = 4
Type | Topic | Plugin | Version |
const | Cocoa Controls | MBS MacControls Plugin | 21.0 |
A plain style. No insets, padding or any other kind of decoration applied to the row or its background. The cells are equally spaced in the row using intercellSpacing.width.
NSTableViewMBS.NSTableViewStyleSourceList = 3
Type | Topic | Plugin | Version |
const | Cocoa Controls | MBS MacControls Plugin | 21.0 |
The source list style of NSTableView. Setting this style will have the side effect of setting the background color to "source list".
Additionally in NSOutlineView, the following properties may change to get the standard "source list" look: indentationPerLevel, rowHeight and intercellSpacing. After setting the style it is possible to change any of the other properties as required.
In 10.11, if the background color has been changed from the "source list" background color to something else, the table will no longer draw the selection as a source list blur style, and instead will draw a normal selection highlight.
This replaces NSTableViewSelectionHighlightStyleSourceList which is to be deprecated.
The items on this page are in the following plugins: MBS MacControls Plugin.