• 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: bundleWithIdentifier: failures
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bundleWithIdentifier: failures


  • Subject: Re: bundleWithIdentifier: failures
  • From: Ricky Sharp <email@hidden>
  • Date: Sat, 29 Dec 2007 13:08:11 -0600


On Dec 29, 2007, at 9:40 AM, Keith Duncan wrote:

I'm being floored by an issue where NSBundle's bundleWithIdentifier: is failing to load one of my frameworks.

NSBundles' bundleWithIdentifier: method won't load the bundle you are requesting, it will simply return an already initialized framework matching the identifier. If you want to get the image using this method you need to load the framework before attempting to use its resources. This can be done by simply linking against the framework.


The first statement here is correct; that's the behavior I was seeing. However, as I stated in my reply to Glenn, you need not load the framework if all you're accessing is resources (see docs on NSBundle's load)

Also, I'm able to dynamically find my image frameworks without the need of explicitly linking. This allows me to drop in new frameworks without the need of rebuilding the various IB Plug-Ins I now have.

___________________________________________________________
Ricky A. Sharp         mailto:email@hidden
Instant Interactive(tm)   http://www.instantinteractive.com

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >bundleWithIdentifier: failures (From: Ricky Sharp <email@hidden>)
 >Re: bundleWithIdentifier: failures (From: Keith Duncan <email@hidden>)

  • Prev by Date: Getting NSArrayController content after application launch
  • Next by Date: Re: Getting NSArrayController content after application launch
  • Previous by thread: Re: bundleWithIdentifier: failures
  • Next by thread: ANN: Source Code Highlighting for Quick Look
  • Index(es):
    • Date
    • Thread