Einhugur macOS Bridge plugin. |

# NSTextView.FromPtr Method

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

shared FromPtr(
textPtr as Ptr) as EinhugurMacOSBridge.NSTextView

#### Parameters

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

#### Returns

EinhugurMacOSBridge.NSTextView

#### Remarks

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

Even if Xojo TextArea does not directly contain NSTextView then this function will drill down the view structures and find the actual NSTextView.

#### See Also

NSTextView Class