Einhugur macOS Bridge plugin. |

# NSView.FromPtr Method

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

shared FromPtr(
textPtr as Ptr) as EinhugurMacOSBridge.NSView

#### Parameters

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

#### Returns

EinhugurMacOSBridge.NSView

#### Remarks

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

#### See Also

NSView Class