Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

Previous items

NSCellMBS.lineBreakMode as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 9.6 Yes No No Yes, macOS only No
Function: The line break mode currently used when drawing text.
Notes:
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)

Feedback, Comments & Corrections

NSCellMBS.menu as NSMenuMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 9.6 Yes No No Yes, macOS only No
Function: The receiver's contextual menu.
Notes:
The receiver's contextual menu, or nil if no menu is assigned.
(Read and Write property)

Feedback, Comments & Corrections

NSCellMBS.mnemonicLocation as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 9.6 Yes No No Yes, macOS only No
Function: The position of the underlined mnemonic character in the receiver's title.
Notes:
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)

Feedback, Comments & Corrections

NSCellMBS.refusesFirstResponder as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 9.6 Yes No No Yes, macOS only No
Function: A Boolean value that indicates whether the receiver should not become the first responder.
Notes:
To find out whether the receiver can become first responder at this time, use the method acceptsFirstResponder.
(Read and Write property)

Feedback, Comments & Corrections

NSCellMBS.Scrollable as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 9.6 Yes No No Yes, macOS only No
Function: A Boolean value that indicates whether the receiver scrolls excess text past the cell's bounds.
Notes: (Read and Write property)

Feedback, Comments & Corrections

NSCellMBS.Selectable as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 9.6 Yes No No Yes, macOS only No
Function: A Boolean value that indicates whether the text of the receiver can be selected.
Notes: (Read and Write property)

Feedback, Comments & Corrections

NSCellMBS.sendsActionOnEndEditing as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 9.6 Yes No No Yes, macOS only No
Function: A Boolean value that indicates whether the receiver's NSControl object sends its action message whenever the user finishes editing the cell's text.
Notes:
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)

Feedback, Comments & Corrections

NSCellMBS.showsFirstResponder as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 9.6 Yes No No Yes, macOS only No
Function: A Boolean value that indicates whether the receiver should draw some indication of its first responder status.
Notes:
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)

Feedback, Comments & Corrections

NSCellMBS.state as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 9.6 Yes No No Yes, macOS only No
Function: The receiver's state.
Notes:
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)

Feedback, Comments & Corrections

NSCellMBS.stringValue as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 9.6 Yes No No Yes, macOS only No
Function: The value of the receiver's cell as a string.
Notes:
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)

Feedback, Comments & Corrections

NSCellMBS.tag as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 9.6 Yes No No Yes, macOS only No
Function: The tag identifying the receiver.
Notes:
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)

Feedback, Comments & Corrections

NSCellMBS.title as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 9.6 Yes No No Yes, macOS only No
Function: The receiver's title.
Notes:
Subclasses (such as NSButtonCell) may override this method to return a different value.
(Read and Write property)

Feedback, Comments & Corrections

NSCellMBS.truncatesLastVisibleLine as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 9.6 Yes No No Yes, macOS only No
Function: 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.
Notes:
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)

Feedback, Comments & Corrections

NSCellMBS.type as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 9.6 Yes No No Yes, macOS only No
Function: The type of the cell, changing it to a text cell, image cell, or null cell.
Notes:
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)

Feedback, Comments & Corrections

NSCellMBS.userInterfaceLayoutDirection as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 16.3 Yes No No Yes, macOS only No
Function: The layout direction of the user interface.
Notes:
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)

Feedback, Comments & Corrections

NSCellMBS.usesSingleLineMode as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 9.6 Yes No No Yes, macOS only No
Function: Whether the text cell restricts layout and rendering of its content to a single line.
Notes:
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)

Feedback, Comments & Corrections

NSCellMBS.wraps as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Cocoa Controls MBS MacCocoa Plugin 9.6 Yes No No Yes, macOS only No
Function: Whether text in the receiver wraps when its length exceeds the frame of the cell.
Notes:
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)

Feedback, Comments & Corrections

Previous items

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




Links
MBS Xojo Plugins