Mono Class Library: MonoTouch.ObjCRuntime.Runtime Overview | Members

MonoTouch.ObjCRuntime.Runtime.GetNSObject Method

Wraps an unmanaged IntPtr into a fully typed NSObject.

public static MonoTouch.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 MonoTouch.Foundation.NSObject.

Remarks

The runtime create an instance of the most derived class.

Requirements

Namespace: MonoTouch.ObjCRuntime
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0