MonobjcMonobjc Documented Class Library
NSButtonType Enumeration
NamespacesMonobjc.AppKitNSButtonType

Represent the button types that can be specified using setButtonType:.

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public enum NSButtonType
Public Enumeration NSButtonType
public enum class NSButtonType
Members
MemberDescription
NSMomentaryLightButton

While the button is held down it’s shown as “lit,” and also “pushed in” to the screen if the button is bordered.

This type of button is best for simply triggering actions, as it doesn’t show its state; it always displays its normal image or title. This option is called “Momentary Light” in Interface Builder’s Button Inspector.

Available in Mac OS X v10.0 and later.


NSPushOnPushOffButton

The first click both highlights and causes the button to be “pushed in” if the button is bordered; a second click returns it to its normal state.

This option is called “Push On Push Off” in Interface Builder’s Button Inspector.

Available in Mac OS X v10.0 and later.


NSToggleButton

After the first click, the button displays its alternate image or title; a second click returns the button to its normal state.

This option is called “Toggle” in Interface Builder’s Button Inspector.

Available in Mac OS X v10.0 and later.


NSSwitchButton

This style is a variant of NSToggleButton that has no border and is used to represent a checkbox.

This type of button is available as a separate Library item in Interface Builder.

Available in Mac OS X v10.0 and later.


NSRadioButton

This style is similar to NSSwitchButton, but it used to constrain a selection to a single element from several.

You typically use this type of button in a group formed by an instance of NSMatrix. In Interface Builder, a matrix of this type of button is available as a separate Library item.

Available in Mac OS X v10.0 and later.


NSMomentaryChangeButton

While the button is held down, the alternate image and alternate title are displayed.

The normal image and title are displayed when the button isn’t pressed. This option is called “Momentary Change” in Interface Builder’s Button Inspector.

Available in Mac OS X v10.0 and later.


NSOnOffButton

The first click highlights the button; a second click returns it to the normal (unhighlighted) state.

This option is called “On Off” in Interface Builder’s Button Inspector.

Available in Mac OS X v10.0 and later.


NSMomentaryPushInButton

While the button is held down it’s shown as “lit.”

This type of button is best for simply triggering actions, as it doesn’t show its state; it always displays its normal image or title. This option is called “Momentary Push In” in Interface Builder’s Button Inspector.

This button type is the default.

Available in Mac OS X v10.0 and later.


NSMomentaryPushButton

While the button is held down it’s shown as “lit,” and also “pushed in” to the screen if the button is bordered. (Deprecated. Use NSMomentaryLightButton instead.)

Available in Mac OS X v10.0 and later.


NSMomentaryLight

While the button is held down it’s shown as “lit.” (Deprecated. Use NSMomentaryPushInButton instead.)

Available in Mac OS X v10.0 and later.


Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)