Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSButtonCellMBS class.

NSButtonCellMBS.alternateImage as NSImageMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 14.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The image the button displays in its alternate state and, if necessary, redraws its contents.

Note that some button types don't display an alternate image.
(Read and Write property)

NSButtonCellMBS.alternateTitle as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 14.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The title the button displays when it's in its alternate state.

Note that some button types don't display an alternate title.
(Read and Write property)

NSButtonCellMBS.attributedAlternateTitle as NSAttributedStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 14.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The string the button displays when it's in its alternate state to the given attributed string.

Note that some button types don't display an alternate title.

Graphics attributes that are set on the cell (backgroundColor, alignment, font, etc.) are overridden when corresponding properties are set for the attributed string.
(Read and Write property)

NSButtonCellMBS.attributedTitle as NSAttributedStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 14.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The string the button displays when it's in its normal state to the given attributed string and redraws the button.

The title is always shown on buttons that don't use their alternate contents when highlighting or displaying their alternate state.

Graphics attributes configured for the cell (backgroundColor, alignment, font, etc.) are overridden when corresponding properties are set for the attributed string.
(Read and Write property)

NSButtonCellMBS.backgroundColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 14.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The background color for the button.

(Read and Write property)

NSButtonCellMBS.imageDimsWhenDisabled as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 14.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether to dim image when button is disabled.

When disabled, the image and text of an NSButtonCell are normally dimmed with gray.
Radio buttons and switches use (imageDimsWhenDisabled = false) so only their text is dimmed.
(Read and Write property)

NSButtonCellMBS.imagePosition as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 14.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The position of the receiver's image relative to its title.

(Read and Write property)

NSButtonCellMBS.imageScaling as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 14.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The scale factor for the receiver's image.

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

NSButtonCellMBS.showsBorderOnlyWhileMouseInside as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 14.2 ✅ Yes ❌ No ❌ No ❌ No Desktop only
Whether to show border only while mouse is inside.

(Read and Write property)

NSButtonCellMBS.sound as Variant

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa Controls MBS MacCocoa Plugin 14.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The sound that's played when the user presses the receiver.

The sound is played during a mouse-down event, such as NSLeftMouseDown.
Value is a NSSoundMBS object.
(Read and Write property)

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


The biggest plugin in space...