MonobjcMonobjc Documented Class Library
ObjectiveCRuntime Class
NamespacesMonobjcObjectiveCRuntime

Entry point of the .NET/Objective-C bridge.

The runtime is responsible for:

A lot of magic occurs behind the scene to ensure that managed type and instances are seen as native in the Objective-C runtime.

Declaration Syntax
C#Visual BasicVisual C++
public static class ObjectiveCRuntime
Public NotInheritable Class ObjectiveCRuntime
public ref class ObjectiveCRuntime abstract sealed
Members
All MembersMethodsProperties



IconMemberDescription
CastAs<(Of <<'(T>)>>)(Id)
Casts an instance to the given type.

CastTo<(Of <<'(T>)>>)(Id)
Casts an instance to the given type.

CreateBlock(Delegate)
Creates a block with the given delegate.

DoNotScanAssembly(String)
Adds a specific assembly name to the already scanned assemblies list, preventing the runtime from scanning it for exported types when loaded.

GetExtern<(Of <<'(T>)>>)(String, String)
Gets the symbol.

GetInstance<(Of <<'(T>)>>)(IntPtr)
Gets the instance of the given type.

GetInstance<(Of <<'(T>)>>)(IntPtr, Boolean)
Gets the instance of the given type.

Initialize()()()()

Initializes the .NET/Objective-C bridge with no class handler callback.

This method must be called AFTER the loading of the native framework (see LoadFramework(String)) and BEFORE any use of the Objective-C classes.


Is64Bits
Gets a value indicating whether the platform is 32 or 64 bits.

IsBigEndian
Gets a value indicating whether the platform uses big-endianness.

LoadFramework(String)
Loads a Mac OS framework bundle by searching for the common places.

MacOSVersion
Gets the Mac OS version.

Processor
Gets the processor description.

Selector(String)
Returns the native selector from the name.

Selector(IntPtr)
Returns the name of the native selector.

SendMessage(IntPtr, String, array<Object>[]()[][])
SendMessage(IManagedWrapper, String, array<Object>[]()[][])
SendMessage<(Of <<'(T>)>>)(IntPtr, String, array<Object>[]()[][])
SendMessage<(Of <<'(T>)>>)(IManagedWrapper, String, array<Object>[]()[][])
SendMessageSuper(IntPtr, Class, String, array<Object>[]()[][])
SendMessageSuper(IManagedWrapper, Class, String, array<Object>[]()[][])
SendMessageSuper<(Of <<'(T>)>>)(IntPtr, Class, String, array<Object>[]()[][])
SendMessageSuper<(Of <<'(T>)>>)(IManagedWrapper, Class, String, array<Object>[]()[][])
SendMessageSuperVarArgs(IntPtr, Class, String, array<Object>[]()[][])
SendMessageSuperVarArgs(IManagedWrapper, Class, String, array<Object>[]()[][])
SendMessageSuperVarArgs<(Of <<'(TReturnType>)>>)(IntPtr, Class, String, array<Object>[]()[][])
SendMessageSuperVarArgs<(Of <<'(TReturnType>)>>)(IManagedWrapper, Class, String, array<Object>[]()[][])
SendMessageVarArgs(IntPtr, String, array<Object>[]()[][])
SendMessageVarArgs(IManagedWrapper, String, array<Object>[]()[][])
SendMessageVarArgs<(Of <<'(TReturnType>)>>)(IntPtr, String, array<Object>[]()[][])
SendMessageVarArgs<(Of <<'(TReturnType>)>>)(IManagedWrapper, String, array<Object>[]()[][])
Wrap(Exception)
Wraps the given exception.

Inheritance Hierarchy
Object
ObjectiveCRuntime
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc (Module: Monobjc)