[Mono-osx] Statics and Singletons with Dumbarton
Andreas Färber
andreas.faerber at web.de
Tue Jan 2 05:27:54 EST 2007
Am 02.01.2007 um 09:55 schrieb R. Tyler Ballance:
> Dumbarton would violate the access modifier for the constructor,
> and call it, and then when I would call the property method in my
> Cocoa code, it'd function as expected. This seems like a subtle
> bug, or is it something that is "allowed" within the constraints of
> the Mono embedded runtime?
Through reflection from fully trusted code you can always call
private methods, whether embedding or from managed code.
> As far as I can tell there's not really a feasible way to call
> static methods through the Dumbarton bridge [...] almost all the
> calls require an instatiated MonoObject before invoking a method.
Supply NULL as the MonoObject* instance, similarly to managed
reflection (null in C#).
HTH,
Andreas
More information about the Mono-osx
mailing list