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

NSCellMBS.acceptsFirstResponder as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 9.6 Yes No No Yes, macOS only No
Function: Returns a Boolean value that indicates whether the receiver accepts first responder status.
Notes: The default value is true if the receiver is enabled. Subclasses may override this method to return a different value.

Feedback, Comments & Corrections

NSCellMBS.calcDrawInfo(theRect as NSRectMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 9.6 Yes No No Yes, macOS only No
Function: Recalculates the cell geometry.
Notes:
Objects (such as controls) that manage NSCell objects generally maintain a flag that informs them if any of their cells have been modified in such a way that the location or size of the cell should be recomputed. If so, calcSize method of NSControl is automatically invoked prior to the display of the cell, and that method invokes the calcDrawInfo method of the cell.
The default implementation of this method does nothing.

Feedback, Comments & Corrections

NSCellMBS.cellAttribute(aParameter as Integer) 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 value for the specified cell attribute.
Notes:
aParameter: The cell attribute whose value you want to get. Attributes include the receiver's current state and whether it is disabled, editable, or highlighted.

Returns the value for the cell attribute specified by aParameter.
(Read and Write computed property)

Feedback, Comments & Corrections

NSCellMBS.cellSize as NSSizeMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 9.6 Yes No No Yes, macOS only No
Function: Returns the minimum size needed to display the receiver.
Notes:
Returns the size of the cell, or the size (10000, 10000) if the receiver is not a text or image cell. If the cell is an image cell but no image has been set, returns NSZeroSize.
This method takes into account of the size of the image or text within a certain offset determined by the border type of the cell.

Feedback, Comments & Corrections

NSCellMBS.cellSizeForBounds(theRect as NSRectMBS) as NSSizeMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 9.6 Yes No No Yes, macOS only No
Function: Returns the minimum size needed to display the receiver, constraining it to the specified rectangle.
Notes:
aRect: The size of the cell, or the size of the aRect parameter if the cell is not a text or image cell. If the cell is an image cell but no image has been set, returns an empty size.

This method takes into account of the size of the image or text within a certain offset determined by the border type of the cell. If the receiver is of text type, the text is resized to fit within aRect (as much as aRect is within the bounds of the cell).

Feedback, Comments & Corrections

NSCellMBS.compare(otherCell as NSCellMBS) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 9.6 Yes No No Yes, macOS only No
Function: Compares the string values of the receiver another cell, disregarding case.
Notes:
otherCell: The cell to compare against the receiver. This parameter must be of type NSCell; if it is not, this method raises NSBadComparisonException.

This value must not be nil. If the value is nil, the behavior is undefined and may change in future versions of Mac OS X.

Returns NSOrderedAscending if the string value of the receiver precedes the string value of otherCell in lexical ordering, NSOrderedSame if the string values are equivalent in lexical value, and NSOrderedDescending string value of the receiver follows the string value of otherCell in lexical ordering.

Feedback, Comments & Corrections

NSCellMBS.Constructor(image as NSImageMBS)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 10.0 Yes No No Yes, macOS only No
Function: Creates a new Cell object with an image.
Example:
dim pic as Picture = LogoMBS(500)
dim n as NSImageMBS = new NSImageMBS(pic)
dim c as new NSCellMBS(n)

Backdrop = c.image.CopyPictureWithMask
Title = c.classPath

See also:

Feedback, Comments & Corrections

NSCellMBS.Constructor(text as string)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 10.0 Yes No No Yes, macOS only No
Function: Creates a new Cell object with a text.
Example:
dim c as new NSCellMBS("Hello")
MsgBox c.StringValue

See also:

Feedback, Comments & Corrections

NSCellMBS.drawingRectForBounds(theRect as NSRectMBS) as NSRectMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 9.6 Yes No No Yes, macOS only No
Function: Returns the rectangle within which the receiver draws itself.
Notes:
theRect: The bounding rectangle of the receiver.
Returns the rectangle in which the receiver draws itself. This rectangle is slightly inset from the one in theRect.

Feedback, Comments & Corrections

NSCellMBS.focusRingType 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 focus ring currently set for the receiver.
Notes:
You can disable a view's focus ring drawing by overriding this method so it always returns NSFocusRingTypeNone, or by calling setFocusRingType: with NSFocusRingTypeNone. You should only disable a view from drawing its focus ring if you want to draw your own focus ring, or if there isn't sufficient space to display a focus ring in the default location.
Available in Mac OS X v10.3 and later.
(Read and Write computed property)

Feedback, Comments & Corrections

NSCellMBS.highlightColorWithFrame(theRect as NSRectMBS, controlView as NSViewMBS) as NSColorMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 9.6 Yes No No Yes, macOS only No
Function: Redraws the receiver with the specified highlight setting.
Notes:
theRect: The bounding rectangle of the receiver.
controlView: The control that manages the cell.

Returns the color the receiver uses when drawing the selection highlight.
You should not assume that a cell would necessarily want to draw itself with the value returned from selectedControlColor. A cell may wish to draw with different a selection highlight color depending on such things as the key state of its controlView.

Feedback, Comments & Corrections

NSCellMBS.imageRectForBounds(theRect as NSRectMBS) as NSRectMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 9.6 Yes No No Yes, macOS only No
Function: Returns the rectangle in which the receiver draws its image.
Notes:
theRect: The bounding rectangle of the receiver.

The rectangle in which the receiver draws its image. This rectangle is slightly offset from the one in theRect.

Feedback, Comments & Corrections

NSCellMBS.isEntryAcceptable(aString as string) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 9.6 Yes No No Yes, macOS only No
Function: Returns whether a string representing a numeric or date value is formatted in a suitable way for the cell's entry type.
Notes: This method is being deprecated in favor of a new class of formatter objects. For more information, see NSFormatter. This documentation is provided only for developers who need to modify older applications

Feedback, Comments & Corrections

NSCellMBS.mnemonic as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 9.6 Yes No No Yes, macOS only No
Function: Returns the character in the receiver's title that appears underlined for use as a mnemonic.
Notes: A string containing the mnemonic character, or an empty string if no mnemonic character is set.

Feedback, Comments & Corrections

NSCellMBS.nextState as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 9.6 Yes No No Yes, macOS only No
Function: The receiver's next state.
Notes: If the receiver has three states, it cycles through them in this order: on, off, mixed, on, and so forth. If the receiver has two states, it toggles between them.

Feedback, Comments & Corrections

NSCellMBS.performClick
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 9.6 Yes No No Yes, macOS only No
Function: Simulates a single mouse click on the receiver.
Notes:
This method performs the receiver's action on its target. The receiver must be enabled to perform the action. If the receiver's control view is valid, that view is used as the sender; otherwise, the value in sender is used.

The receiver of this message must be a cell of type NSActionCell. This method raises an exception if the action message cannot be successfully sent.

Feedback, Comments & Corrections

NSCellMBS.sendActionOn(mask as Integer) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 9.6 Yes No No Yes, macOS only No
Function: Sets the conditions on which the receiver sends action messages to its target.
Notes:
mask: A bit mask containing the conditions for sending the action. The only conditions that are actually checked are associated with the NSLeftMouseDownMask, NSLeftMouseUpMask, NSLeftMouseDraggedMask, and NSPeriodicMask bits.

Returns a bit mask containing the previous settings. This bit mask uses the same values as specified in the mask parameter.

You use this method during mouse tracking when the mouse button changes state, the mouse moves, or if the cell is marked to send its action continuously while tracking. Because of this, the only bits checked in mask are NSLeftMouseDownMask, NSLeftMouseUpMask, NSLeftMouseDraggedMask, and NSPeriodicMask, which are declared in the NSEvent class reference.

You can use the setContinuous method to turn on the flag corresponding to NSPeriodicMask or NSLeftMouseDraggedMask, whichever is appropriate to the given subclass of NSCell.

Feedback, Comments & Corrections

NSCellMBS.setNextState
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 9.6 Yes No No Yes, macOS only No
Function: Changes the state of the receiver to its next state.
Notes: If the receiver has three states, it cycles through them in this order: on, off, mixed, on, and so forth. If the receiver has two states, it toggles between them.

Feedback, Comments & Corrections

NSCellMBS.setTitleWithMnemonic(stringWithAmpersand as string)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 9.6 Yes No No Yes, macOS only No
Function: Sets the title of the receiver with one character in the string denoted as an access key.
Notes:
stringWithAmpersand: The new title of the cell. One character in the string should be preceded by an ampersand (&) character. The character that follows becomes the mnemonic character for the title.
Mnemonics are not supported in Mac OS X.

Feedback, Comments & Corrections

NSCellMBS.titleRectForBounds(theRect as NSRectMBS) as NSRectMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 9.6 Yes No No Yes, macOS only No
Function: Returns the rectangle in which the receiver draws its title text.
Notes: If the receiver is a text-type cell, this method resizes the drawing rectangle for the title (theRect) inward by a small offset to accommodate the cell border. If the receiver is not a text-type cell, the method does nothing.

Feedback, Comments & Corrections

NSCellMBS.wantsNotificationForMarkedText as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Cocoa Controls MBS MacCocoa Plugin 9.6 Yes No No Yes, macOS only No
Function: Returns a Boolean value that indicates whether the field editor initiated by the receiver should post text change notifications.
Notes: Returns true if the field editor initiated by the receiver should post text change notifications (NSTextDidChangeNotification) while editing marked text; otherwise, they are delayed until the marked text confirmation.

Feedback, Comments & Corrections

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




Links
MBS Xojo PDF Plugins