Einhugur macOS Bridge plugin. |

# NSButton.FromPtr Method

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

shared FromPtr(
btnPtr as Ptr) as EinhugurMacOSBridge.NSButton

#### Parameters

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

#### Returns

EinhugurMacOSBridge.NSButton

#### Remarks

Do not pass Ptr 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