[Mono-osx] external reference to a class
Duane Wandless
duane at wandless.net
Thu Oct 22 15:42:34 EDT 2009
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20091022/07435baf/attachment.html
More information about the Mono-osx
mailing list