The Button is a Control subclass which represents Cocoa’s NSButton.
Cocoa constant. The type of the button. Equivalent to [self buttonType]. Use with NSButtonType constants.
Cocoa constant. The style of the button. Equivalent to [self bezelStyle]. Use with NSBezelStyle constants.
Boolean. Whether the button has a border.
String. The text on the button. Equivalent to [self title].
A string that represent the keyboard shortcut that triggers the button. This string has the format “modifiers+letter”, for example, “cmd+f”. Available modifiers are “cmd”, “ctrl”, “alt” and “shift”.
Some special characters are supported through special identifiers. The list of supported identifiers is there. For example, if you want a shortcut that is activated on cmd+<up arrow>, your shorcut would be cmd+arrowup.
String. The name of an image for the button. Equivalent to [self image].
If you fire up Interface Builder and try to play with a button bezel style, you’ll notice that changing it changes many more things too, such as the layouts and the fonts. xibless does it too (it tries to do exactly as IB does). Whenever Button.bezelStyle is changed, layout delta values and fonts are changed. Therefore, if you should always change the Button.font and/or do the layouts after you’ve changed your bezel style.
Checkbox is a subclass of Button, behaves the same way and adds no method or attributes. The only differences is that it sets the button buttonType to NSSwitchButton and tweaks the margins to fit XCode’s behavior.