Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSCellMBS class.

NSCellMBS.alignment as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The alignment of text in the receiver..

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

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
A Boolean value that indicates whether the receiver allows user editing of textual attributes.

(Read and Write property)

NSCellMBS.allowsMixedState as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
A Boolean value that indicates whether the receiver supports three states.

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

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
A Boolean value that indicates whether the receiver assumes responsibility for undo operations.

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

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The value of the receiver's cell as an attributed string using the receiver's formatter object (if one exists).

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

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the background style for the receiver.

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

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The initial writing direction used to determine the actual writing direction for text.

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

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
A Boolean value that indicates whether the receiver has a bezeled border.

(Read and Write property)

NSCellMBS.Bordered as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
A Boolean value that indicates whether the receiver has a plain border.

(Read and Write property)

NSCellMBS.className as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 10.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The name of this NSCell class.
Example
dim c as new NSActionCellMBS("Hello")
MsgBox c.className // shows "NSActionCell"

(Read only property)

NSCellMBS.classPath as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 10.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The path of this NSCell class.
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

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
A Boolean value that indicates whether the receiver's cell sends its action message continuously to its target during mouse tracking.

(Read and Write property)

NSCellMBS.controlSize as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The size of the receiver.

Can be NSRegularControlSize, NSMiniControlSize or NSSmallControlSize.
(Read and Write property)

NSCellMBS.controlTint as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The receiver's control tint.

Can be NSGraphiteControlTint, NSBlueControlTint, NSClearControlTint or NSDefaultControlTint.
(Read and Write property)

NSCellMBS.doubleValue as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The value of the receiver's cell as a double-precision floating-point number.

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

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
A Boolean value that indicates whether the receiver is editable.

(Read and Write property)

NSCellMBS.Enabled as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
A Boolean value that indicates whether the receiver is enabled or disabled.

(Read and Write property)

NSCellMBS.floatValue as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The value of the receiver's cell as a single-precision floating-point number.

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

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The font used to display text in the receiver.

The receiver's current font, or nil if the receiver is not a text-type cell.
(Read and Write property)

NSCellMBS.Handle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The internal NSCell reference.

(Read and Write property)

NSCellMBS.hasValidObjectValue as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns a Boolean value that indicates whether the receiver has a valid object value.

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

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
A Boolean value that indicates whether the receiver is highlighted.

(Read and Write property)

NSCellMBS.Identifier as String   New in 24.1

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 24.1 ✅ Yes ❌ No ❌ No ❌ No Desktop only
A string that identifies this user interface item.

It should be set to a unique value on NSViews when they are intended to be used inside a view-based NSTableView. Identifiers should be unique per-window. For programmatically created user interface items, you would typically set this value in code after creating a view but before adding it to a window. You may also want to set an identifier on a window, after creating it programmatically, to identify the window easily when it is reopened. You should not change the identifier after a view is added to a window. Identifiers beginning with an underscore are reserved for the system. In framework classes that implement this protocol, the accessor methods are not intended to be overridden.

To help avoid collision of identifiers, it is recommended that identifiers use the same prefix as is used for the framework or application. For example, identifiers for standard AppKit interface items, such as the open panel, will begin with "NS".

The slash '/', backslash '\', and colon ':' characters are reserved and should not be used in identifiers.
(Read and Write property)

NSCellMBS.image as NSImageMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The image displayed by the receiver (if any).

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

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
A Boolean value that indicates whether the text of the receiver can contain imported graphics.

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

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the interior background style for the receiver.

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

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The receiver's value as an integer.

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

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns a Boolean value that indicates whether the receiver is opaque (nontransparent).

(Read only property)

NSCellMBS.keyEquivalent as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the key equivalent to clicking the cell.

Subclasses can override this method to return a string with a valid character for the key equivalent.
(Read only property)

NSCellMBS.lineBreakMode as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The line break mode currently used when drawing text.

The line break mode the receiver currently uses when drawing text (one of the following constants: NSLineBreakByWordWrapping, NSLineBreakByCharWrapping, NSLineBreakByClipping, NSLineBreakByTruncatingHead, NSLineBreakByTruncatingTail, or NSLineBreakByTruncatingMiddle).
Available in Mac OS X v10.4 and later.
(Read and Write property)

NSCellMBS.menu as NSMenuMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The receiver's contextual menu.

The receiver's contextual menu, or nil if no menu is assigned.
(Read and Write property)

NSCellMBS.mnemonicLocation as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The position of the underlined mnemonic character in the receiver's title.

A zero-based index into the receiver's title string indicating the position of the character. If there is no mnemonic character, this method returns NSNotFound.
Mnemonics are not supported in Mac OS X.
(Read and Write property)

NSCellMBS.refusesFirstResponder as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
A Boolean value that indicates whether the receiver should not become the first responder.

To find out whether the receiver can become first responder at this time, use the method acceptsFirstResponder.
(Read and Write property)

NSCellMBS.Scrollable as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
A Boolean value that indicates whether the receiver scrolls excess text past the cell's bounds.

(Read and Write property)

NSCellMBS.Selectable as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
A Boolean value that indicates whether the text of the receiver can be selected.

(Read and Write property)

NSCellMBS.sendsActionOnEndEditing as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
A Boolean value that indicates whether the receiver's NSControl object sends its action message whenever the user finishes editing the cell's text.

If this method returns true, the receiver's NSControl object sends its action message when the user does one of the following:

  • Presses the Return key
  • Presses the Tab key to move out of the field
  • Clicks another text field
If it returns false, the cell's NSControl object sends its action message only when the user presses the Return key.
(Read and Write property)

NSCellMBS.showsFirstResponder as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
A Boolean value that indicates whether the receiver should draw some indication of its first responder status.

The NSCell class itself does not draw a first-responder indicator. Subclasses may use the returned value to determine whether or not they should draw one, however.
(Read and Write property)

NSCellMBS.state as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The receiver's state.

Cells can have two or three states. If the receiver has two states, it returns either NSOffState (the normal or unpressed state) or NSOnState (the alternate or pressed state). If it has three, it may also return NSMixedState, indicating the feature is in effect somewhere.
To check whether the receiver uses the mixed state, use the method allowsMixedState.
Note that the value state returns may not be the same value you passed into setState.
(Read and Write property)

NSCellMBS.stringValue as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The value of the receiver's cell as a string.

If no formatter exists and the cell's value is a string, this method returns the value as a plain, attributed, or localized formatted string. If the value is not a string or cannot be converted to one, this method returns an empty string.

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, the cell uses that method to fetch the string to draw rather than the stringValue method.
(Read and Write property)

NSCellMBS.tag as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The tag identifying the receiver.

The tag value. The NSCell implementation of this method returns –1.
Tags allow you to identify particular cells. Tag values are not used internally; they are only changed by external invocations of setTag:. You typically set tag values in Interface Builder and use them at runtime in your application. When you set the tag of a control with a single cell in Interface Builder, it sets the tags of both the control and the cell to the same value as a convenience.
(Read and Write property)

NSCellMBS.title as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The receiver's title.

Subclasses (such as NSButtonCell) may override this method to return a different value.
(Read and Write property)

NSCellMBS.truncatesLastVisibleLine as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns a Boolean value indicating whether the receiver truncates and adds the ellipsis character to the last visible line if the text doesn't fit into the cell bounds.

The line break mode must be either NSLineBreakByWordWrapping or NSLineBreakByCharWrapping. Otherwise, this setting is ignored.
Available in Mac OS X v10.5 and later.
(Read and Write property)

NSCellMBS.type as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The type of the cell, changing it to a text cell, image cell, or null cell.

If the cell is already the same type as the one specified in the aType parameter, this method does nothing.
If aType is NSTextCellType, this method converts the receiver to a cell of that type, giving it a default title and setting the font to the system font at the default size. If aType is NSImageCellType, the cell type is not changed until you set a new non-nil image.
(Read and Write property)

NSCellMBS.userInterfaceLayoutDirection as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 16.3 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The layout direction of the user interface.

This property specifies the general user interface layout flow directions. For subclasses that have multiple visual components in a single cell instance, this property should specify the directionality or flow of components.

NSUserInterfaceLayoutDirectionLeftToRight = 0
NSUserInterfaceLayoutDirectionRightToLeft = 1

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

NSCellMBS.usesSingleLineMode as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether the text cell restricts layout and rendering of its content to a single line.

If true, the cell ignores the return value from wraps, interprets NSLineBreakByWordWrapping and NSLineBreakByCharWrapping returned by lineBreakMode as NSLineBreakByClipping, and configures the field editor to ignore key binding commands that insert paragraph and line separators.

The field editor bound to a single line cell filters paragraph and line separator insertion from user actions. Cells in the single line mode use the fixed baseline layout. The text baseline position is determined solely by the control size regardless of content font style or size.
(Read and Write property)

NSCellMBS.wraps as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 9.6 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether text in the receiver wraps when its length exceeds the frame of the cell.

If the text of the receiver is an attributed string value you must explicitly set the paragraph style line break mode. Calling this method with the value true is equivalent to calling the setLineBreakMode: method with the value NSLineBreakByWordWrapping.
(Read and Write property)

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


The biggest plugin in space...