Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSCellMBS class.
NSCellMBS.alignment as Integer
Function:
The alignment of text in the receiver..
Notes:
The alignment of text in the receiver (one of the following constants: NSLeftTextAlignment, NSRightTextAlignment,NSCenterTextAlignment, NSJustifiedTextAlignment, NSNaturalTextAlignment).
The default value is NSNaturalTextAlignment.
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacCocoa Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Notes:
The alignment of text in the receiver (one of the following constants: NSLeftTextAlignment, NSRightTextAlignment,NSCenterTextAlignment, NSJustifiedTextAlignment, NSNaturalTextAlignment).
The default value is NSNaturalTextAlignment.
(Read and Write property)
NSCellMBS.allowsEditingTextAttributes as boolean
Function:
A Boolean value that indicates whether the receiver allows user editing of textual attributes.
Notes: (Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacCocoa Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Notes: (Read and Write property)
NSCellMBS.allowsMixedState as boolean
Function:
A Boolean value that indicates whether the receiver supports three states.
Notes:
Valus is true if the receiver supports all three states (on, off, and mixed), otherwise false (the receiver supports only the on and off states).
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacCocoa Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Notes:
Valus is true if the receiver supports all three states (on, off, and mixed), otherwise false (the receiver supports only the on and off states).
(Read and Write property)
NSCellMBS.allowsUndo as boolean
Function:
A Boolean value that indicates whether the receiver assumes responsibility for undo operations.
Notes:
By default, the NSTextFieldCell class uses this feature to handle undo operations for edited text. Other controls set a value that is appropriate for their implementation.
Available in Mac OS X v10.4 and later.
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacCocoa Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Notes:
By default, the NSTextFieldCell class uses this feature to handle undo operations for edited text. Other controls set a value that is appropriate for their implementation.
Available in Mac OS X v10.4 and later.
(Read and Write property)
NSCellMBS.attributedStringValue as NSAttributedStringMBS
Function:
The value of the receiver's cell as an attributed string using the receiver's formatter object (if one exists).
Notes:
The textual attributes are the default paragraph style, the receiver's font and alignment, and whether the receiver is enabled and scrollable.
For Mac OS X v10.3 and later: If you use a class that responds to the selector attributedStringValue for the object value of a cell, then the cell will use that method to fetch the string to draw rather than using stringValue.
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacCocoa Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Notes:
The textual attributes are the default paragraph style, the receiver's font and alignment, and whether the receiver is enabled and scrollable.
For Mac OS X v10.3 and later: If you use a class that responds to the selector attributedStringValue for the object value of a cell, then the cell will use that method to fetch the string to draw rather than using stringValue.
(Read and Write property)
NSCellMBS.backgroundStyle as Integer
Function:
Returns the background style for the receiver.
Notes:
The background describes the surface the cell is drawn onto in drawWithFrame A control typically sets this before it asks the cell to draw. A cell may draw differently based on background characteristics. For example, a tableview drawing a cell in a selected row might set cell.backgroundStyle=NSBackgroundStyleDark. A text cell might decide to render its text white as a result. A rating-style level indicator might draw its stars white instead of gray.
Available in Mac OS X v10.5 and later.
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacCocoa Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Notes:
The background describes the surface the cell is drawn onto in drawWithFrame A control typically sets this before it asks the cell to draw. A cell may draw differently based on background characteristics. For example, a tableview drawing a cell in a selected row might set cell.backgroundStyle=NSBackgroundStyleDark. A text cell might decide to render its text white as a result. A rating-style level indicator might draw its stars white instead of gray.
Available in Mac OS X v10.5 and later.
(Read and Write property)
NSCellMBS.baseWritingDirection as Integer
Function:
The initial writing direction used to determine the actual writing direction for text.
Notes:
The default value is NSWritingDirectionNatural.
The Text system uses this value as a hint for calculating the actual direction for displaying Unicode characters. You should not need to call this method directly.
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacCocoa Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Notes:
The default value is NSWritingDirectionNatural.
The Text system uses this value as a hint for calculating the actual direction for displaying Unicode characters. You should not need to call this method directly.
(Read and Write property)
NSCellMBS.Bezeled as boolean
Function:
A Boolean value that indicates whether the receiver has a bezeled border.
Notes: (Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacCocoa Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Notes: (Read and Write property)
NSCellMBS.Bordered as boolean
Function:
A Boolean value that indicates whether the receiver has a plain border.
Notes: (Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacCocoa Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Notes: (Read and Write property)
NSCellMBS.className as string
Function:
The name of this NSCell class.
Example:
Notes:
(Read only property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacCocoa Plugin | 10.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Example:
dim c as new NSActionCellMBS("Hello")
MsgBox c.className // shows "NSActionCell"
NSCellMBS.classPath as string
Function:
The path of this NSCell class.
Example:
Notes:
Useful for debugging to know what super classes the view has.
(Read only property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacCocoa Plugin | 10.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Example:
dim c as new NSActionCellMBS("Hello")
MsgBox c.classPath // shows "NSActionCell:NSCell:NSObject"
Useful for debugging to know what super classes the view has.
(Read only property)
NSCellMBS.Continuous as boolean
Function:
A Boolean value that indicates whether the receiver's cell sends its action message continuously to its target during mouse tracking.
Notes: (Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacCocoa Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Notes: (Read and Write property)
NSCellMBS.controlSize as Integer
Function:
The size of the receiver.
Notes:
Can be NSRegularControlSize, NSMiniControlSize or NSSmallControlSize.
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacCocoa Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Notes:
Can be NSRegularControlSize, NSMiniControlSize or NSSmallControlSize.
(Read and Write property)
NSCellMBS.controlTint as Integer
Function:
The receiver's control tint.
Notes:
Can be NSGraphiteControlTint, NSBlueControlTint, NSClearControlTint or NSDefaultControlTint.
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacCocoa Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Notes:
Can be NSGraphiteControlTint, NSBlueControlTint, NSClearControlTint or NSDefaultControlTint.
(Read and Write property)
NSCellMBS.controlView as NSViewMBS
Function:
The receiver's control view.
Notes:
The control view represents the control currently being rendered by the cell.
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacCocoa Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Notes:
The control view represents the control currently being rendered by the cell.
(Read and Write property)
Some examples using this property:
- /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 Simple Demo 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
NSCellMBS.doubleValue as Double
Function:
The value of the receiver's cell as a double-precision floating-point number.
Notes:
The value of the cell interpreted as a double-precision floating-point number. If the receiver is not a text-type cell or the cell value is not scannable, returns 0.
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacCocoa Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Notes:
The value of the cell interpreted as a double-precision floating-point number. If the receiver is not a text-type cell or the cell value is not scannable, returns 0.
(Read and Write property)
NSCellMBS.Editable as boolean
Function:
A Boolean value that indicates whether the receiver is editable.
Notes: (Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacCocoa Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Notes: (Read and Write property)
NSCellMBS.Enabled as boolean
Function:
A Boolean value that indicates whether the receiver is enabled or disabled.
Notes: (Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacCocoa Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Notes: (Read and Write property)
NSCellMBS.floatValue as Double
Function:
The value of the receiver's cell as a single-precision floating-point number.
Notes:
Returns the value of the cell interpreted as a single-precision floating-point number. If the receiver is not a text-type cell or the cell value is not scannable, returns 0.
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacCocoa Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Notes:
Returns the value of the cell interpreted as a single-precision floating-point number. If the receiver is not a text-type cell or the cell value is not scannable, returns 0.
(Read and Write property)
NSCellMBS.font as NSFontMBS
Function:
The font used to display text in the receiver.
Notes:
The receiver's current font, or nil if the receiver is not a text-type cell.
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacCocoa Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Notes:
The receiver's current font, or nil if the receiver is not a text-type cell.
(Read and Write property)
NSCellMBS.Handle as Integer
Function:
The internal NSCell reference.
Notes: (Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacCocoa Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Notes: (Read and Write property)
NSCellMBS.hasValidObjectValue as boolean
Function:
Returns a Boolean value that indicates whether the receiver has a valid object value.
Notes:
A valid object value is one that the receiver's formatter can "understand." Objects are always assumed to be valid unless they are rejected by the formatter.
(Read only property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacCocoa Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Notes:
A valid object value is one that the receiver's formatter can "understand." Objects are always assumed to be valid unless they are rejected by the formatter.
(Read only property)
NSCellMBS.Highlighted as boolean
Function:
A Boolean value that indicates whether the receiver is highlighted.
Notes: (Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacCocoa Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Notes: (Read and Write property)
NSCellMBS.image as NSImageMBS
Function:
The image displayed by the receiver (if any).
Notes:
The image displayed by the receiver, or nil if the receiver is not an image-type cell.
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacCocoa Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Notes:
The image displayed by the receiver, or nil if the receiver is not an image-type cell.
(Read and Write property)
NSCellMBS.importsGraphics as boolean
Function:
A Boolean value that indicates whether the text of the receiver can contain imported graphics.
Notes:
true if the receiver's text is in the RTFD format and supports imported graphics, otherwise false.
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacCocoa Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Notes:
true if the receiver's text is in the RTFD format and supports imported graphics, otherwise false.
(Read and Write property)
NSCellMBS.interiorBackgroundStyle as Integer
Function:
Returns the interior background style for the receiver.
Notes:
The interior background style describes the surface drawn onto in drawInteriorWithFrame:inView:. This is often the same as the backgroundStyle, but a button that draws a bezel would have a different interiorBackgroundStyle.
This is both an override point and a useful method to call. In a custom button with a custom bezel you can override this method to describe that surface. A cell that has custom interior drawing might query this method to help pick an image that looks good on the cell. Calling this method gives you some independence from changes in framework art style.
Available in Mac OS X v10.5 and later.
(Read only property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacCocoa Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Notes:
The interior background style describes the surface drawn onto in drawInteriorWithFrame:inView:. This is often the same as the backgroundStyle, but a button that draws a bezel would have a different interiorBackgroundStyle.
This is both an override point and a useful method to call. In a custom button with a custom bezel you can override this method to describe that surface. A cell that has custom interior drawing might query this method to help pick an image that looks good on the cell. Calling this method gives you some independence from changes in framework art style.
Available in Mac OS X v10.5 and later.
(Read only property)
NSCellMBS.intValue as Integer
Function:
The receiver's value as an integer.
Notes:
The value of the cell interpreted as an integer. If the receiver is not a text-type cell or the cell value is not scannable, returns 0.
On Mac OS X v10.5 and later, you should use integerValue instead.
(Read and Write property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacCocoa Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Notes:
The value of the cell interpreted as an integer. If the receiver is not a text-type cell or the cell value is not scannable, returns 0.
On Mac OS X v10.5 and later, you should use integerValue instead.
(Read and Write property)
NSCellMBS.isOpaque as boolean
Function:
Returns a Boolean value that indicates whether the receiver is opaque (nontransparent).
Notes: (Read only property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacCocoa Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Notes: (Read only property)
NSCellMBS.keyEquivalent as string
Function:
Returns the key equivalent to clicking the cell.
Notes:
Subclasses can override this method to return a string with a valid character for the key equivalent.
(Read only property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa Controls | MBS MacCocoa Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Notes:
Subclasses can override this method to return a string with a valid character for the key equivalent.
(Read only property)
The items on this page are in the following plugins: MBS MacCocoa Plugin.
