MonoMac.ObjCRuntime.Runtime.GetNSObject Method
Wraps an unmanaged IntPtr into a fully typed NSObject.

Syntax

public static MonoMac.Foundation.NSObject GetNSObject (IntPtr ptr)

Parameters

ptr
A pointer to an unmanaged NSObject or any class that derives from the Objective-C NSObject class.

Returns

An instance of a class that derives from MonoMac.Foundation.NSObject.

Remarks

The runtime create an instance of the most derived class.

Requirements

Namespace: MonoMac.ObjCRuntime
Assembly: XamMac (in XamMac.dll)
Assembly Versions: 0.0.0.0