[Mono-osx] MonoMac: on demand loading
Duane Wandless
duane at wandless.net
Sun Sep 19 11:06:13 EDT 2010
Currently most libraries are force loaded from NSObjectMac.cs. Even though
they are shared it still might be better to only load libraries used by the
app. I theorized a solution by adding a static ctor in each class within
the namespace that would load the library, but I believe this will not work
as the library must be initialized first so it can be registered.
Maybe there should be a Link Frameworks metaphor as xcode does. So the user
must specify which frameworks to load at startup. If they fail to include
QTKit, for example, then a runtime error is generated, which would be the
same behavior as an xcode application.
Related is 3rd party libraries. There should probably be a way to specify
these libraries to be loaded at startup as well.
Duane
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20100919/6b135aea/attachment.html
More information about the Mono-osx
mailing list