Platforms to show: All Mac Windows Linux Cross-Platform

NSButtonCellMBS class

Super class: NSActionCellMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Cocoa Controls MBS MacCocoa Plugin 14.0 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The NSButtonCell class is a subclass of NSActionCell used to implement the user interfaces of push buttons, checkboxes (switches), and radio buttons.

It can also be used for any other region of a view that's designed to send a message to a target when clicked. The NSButtonMBS subclass of NSControlMBS uses a single NSButtonCellMBS.

The NSButtonCell class implements the user interface of NSButton.

Setting the integer, float, double, or object value of an NSButtonCell object results in a call to setState with the value converted to integer. In the case of setObjectValue, nil is equivalent to 0, and a non-nil object that doesn't respond to intValue sets the state to 1. Otherwise, the state is set to the object's intValue. Similarly, querying the integer, float, double, or object value of an NSButtonCell returns the current state in the requested representation. In the case of objectValue, this is an NSNumber containing true for on, false for off, and integer value -1 for the mixed state.

For more information on the behavior of NSButtonCell, see the NSButton and NSMatrix class specifications, and Button Programming Topics.
Subclass of the NSActionCellMBS class.

Bezel Styles

Constant Value Description
BezelStyleAccessoryBar 13 A bezel style that is suitable for accessory and scope bars. This style is typically used for buttons with togglable state.
BezelStyleAccessoryBarAction 12 A bezel style that is suitable for accessory and scope bars. This style is typically used for buttons that perform an action or for pop-up buttons.
BezelStyleAutomatic 0 The appearance of this bezel style is automatically determined based on the button's contents and position within the window. This bezel style is the default for all button initializers.
BezelStyleBadge 15 A bezel style that is typically used in table rows to display information about the row, such as a count.
BezelStyleCircular 7 A button with a circular bezel suitable for a small icon or single character.
BezelStyleDisclosure 5 An unbezeled button with a disclosure triangle.
BezelStyleFlexiblePush 2 A flexible-height variant of NSBezelStylePush.
BezelStyleGlass 16 A bezel style with a glass effect.
For macOS 26 or newer.
Example
BezelStyleHelpButton 9 A circular button with a question mark providing the standard Help button appearance.
BezelStylePush 1 The standard system push button style.
BezelStylePushDisclosure 14 A bezeled variant of NSBezelStyleDisclosure.
BezelStyleSmallSquare 10 A button with squared edges and flexible height.
BezelStyleToolbar 11 A button style that is appropriate for use in a toolbar item.

Super class NSActionCellMBS

Super class NSCellMBS

Sub classes:

Blog Entries

Xojo Developer Magazine

Release notes

Some properties using for this class:

Some examples using this class:

Some related classes:


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


NSBundleMBS   -   NSButtonMBS


The biggest plugin in space...