Einhugur macOS Bridge plugin.

NSButton.ButtonTypeValues Enum

Enum for button types.

Note: Not all button types are made for supporting Touch Bars.

enum NSButton.ButtonTypeValues

Constants

MomentaryLight = 0Value if 0 on this one. (No documentation found in the Apple docs)
PushOnPushOff = 1Value if 1 on this one. (No documentation found in the Apple docs) This one we successfully used in the example projects for sticky toggle button on the Touch Bar.
Toggle = 2Value if 2 on this one. (No documentation found in the Apple docs)
Switch = 3Value if 3 on this one. (No documentation found in the Apple docs)
Radio = 4Value if 4 on this one. (No documentation found in the Apple docs)
MomentaryChange = 5Value if 5 on this one. (No documentation found in the Apple docs)
OnOff = 6Value if 6 on this one. (No documentation found in the Apple docs)
MomentaryPushIn = 7Value if 7 on this one. (No documentation found in the Apple docs)
Accelerator = 8Value if 8 on this one. (No documentation found in the Apple docs) (macOS 10.10.3 or later needed for this one)
MultiLevelAccelerator = 9Value if 9 on this one. (No documentation found in the Apple docs) (macOS 10.10.3 or later needed for this one)