Einhugur macOS Bridge plugin.

EinhugurMacOSBridge.NSButton Class

A native macOS button control.

NSControl
   NSButton

class EinhugurMacOSBridge.NSButton

Constructors

NSButtonConstructor that constructor button from string and clickHandler.

Properties

AlternateImageAn alternate image that appears on the button when the button is in an on state.
ImageSets or gets image for the button.
ImageHugsTitleA Boolean value that determines how the button’s image and title are positioned together within the button bezel.
ImagePositionhe position of the button’s image relative to its title.
IsDefaultIf set to true then the button will show blue highlighted. (Or whichever color your theme has chosen for such)
StateSets or gets state of a button for button types that support states.
Enabled (Inherited) Enables or disables the control.
TextValue (Inherited) Sets or gets the text value of the receiver’s cell.
Handle (Inherited) Returns Integer handle to the native NSObject structure.

Methods

shared FromIntegerPtrConstructs NSButton object from Integer handle coming from declares or 3rd party plugin.
Release (Inherited) Releases the NSObject.
Retain (Inherited) Retains the NSObject
SetButtonTypeSets the type of the button defined by the ButtonTypeValues enum.

Delegates

ButtonClickDelegate (console safe) Delegate that defines click handler for NSButton.

Enumerations

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

Supported Platforms:

  • MacOS X Cocoa 32 bit
  • MacOS X Cocoa 64 bit

    Unsupported Platforms:

  • MacOS X Carbon
  • Windows 32 bit
  • Windows 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM