Hopefully someone can help with this.

I am currently doing this.

    id myobj = objc_getClass("MyMonoClass");
    [myobj testTouch];

which works.  MyMonoClass is not defined so I cannot do this:
[MyMonoClass testTouch];

Because the compiler tries to resolve the class reference, of course.

Is there a better way to do this than what I have?  Which I got the idea of
how to do this from Monobjc!

The context is that I have a Cocoa application that loads the mono runtime
which loads my Monobjc enabled library.  Which that is where MyMonoClass is
defined.  Then I need to invoke a method on the mono class from Cocoa.

Thanks,
Duane

Reply via email to