[Mono-dev] Initializing the binding system from embedded mono

Mackey Kinard MackeyK24 at Yahoo.com
Sat May 3 22:20:56 UTC 2014


I am resenting because it rejected my email... Not sure which email is on dev list but here is the question again


Does ANYBODY know ANYTHING about initializing the binding system. I can't seems to get any answers at all about using the Xamarin classes that bind mac, ios and android.

How do initialize the binding system. I am assuming the binding system must be initialized
When using from embedded mono because you get errors about missing ctor(IntPtr) on all
Classes... The only way I get use the binding now is the create the objects in native code and pass the pointer to the object to managed code. Once I have the pointer in managed code
THEN the rest of the class works fine.

For example... If I create a NSColor object in native code and pass the pointer to managed code
I can do something like this to use the managed NSColor class:

NSColor c = new NSColor(nativeptr);

Now I can use the NSColor class in managd code. But I can't create object from managed code:

NSColor c = NSColor.Black;

Gets "No constructor found for AppKit.NSColor::.ctor(System.IntPtr)"

There has gotta be something missing.... Like initializing the binding system. Something
Xamarin is doing during the application startup when using mono to actually drive whole app.

Something they won't share on initializing things when using mono embedded.

Does any savvy mono programmers have any info that would help me out. 

Sent from my iPad

Sent from my iPad


More information about the Mono-devel-list mailing list