Einhugur macOS Bridge plugin. |

# NSButton.FromIntegerPtr Method

Constructs NSButton object from Integer handle coming from declares or 3rd party plugin.

shared FromIntegerPtr(
btnIntPtr as Integer) as EinhugurMacOSBridge.NSButton

#### Parameters

btnIntPtr
  Integer handle coming from declare or 3rd party plugin that points to live NSButton object.

#### Returns

EinhugurMacOSBridge.NSButton

#### Remarks

Do not pass integer in here that is not actually NSButton handle, doing so would generate crash.
The NSButton class will handle retaining the object once and releasing once the object once the NSButton class is no longer used.

#### See Also

NSButton Class