Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSCellMBS class.

Previous items

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)

Previous items

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


💬 Ask a question or report a problem
The biggest plugin in space...