Re: Loading NSBundles (.framework) not originally included in project
Re: Loading NSBundles (.framework) not originally included in project
- Subject: Re: Loading NSBundles (.framework) not originally included in project
- From: Hsu <email@hidden>
- Date: Wed, 23 Apr 2003 20:44:13 -0700
My suggestion would be:
In your WOApplication subclass (as early as possible) try getting the
WOBootstrap classloader (WOApplication.class.getClassLoader()) and cast
it to an URLClassloader
Use reflection to invoke addURL with the URL to the new bundle
Invoke NSBundle.bundleForPath()
That _might_ work. Dunno for certain.
Karl
On Tuesday, April 22, 2003, at 08:14 PM, King Chung Huang wrote:
Is it possible to load in known NSBundles (.framework) in a WebObjects
app
that weren't originally included in the project? My application
accepts a
variety of plug-ins in the form of .framework bundles. If I know the
names
of the bundles and where they're located, can I load them
programmatically?
NSBundle.bundleWithPath(aPath) is deprecated. Is there some other way
to do
it?
Thanks,
King Chung Huang
Learning Commons
University of Calgary
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
--
i am the man in the machine
l'homo ex machina
Homepage:
http://homepage.mac.com/khsu/index.html
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.