• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Loading NSBundles (.framework) not originally included in project
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Loading NSBundles (.framework) not originally included in project (From: King Chung Huang <email@hidden>)

  • Prev by Date: Re: WebObjects & QuickTime for Java Problem
  • Next by Date: WORepetition
  • Previous by thread: Re: Loading NSBundles (.framework) not originally included in project
  • Next by thread: Catching Matching Values in User TextField against EO
  • Index(es):
    • Date
    • Thread