• 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
Uncaching NSBundle's "objectForInfoDictionaryKey"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Uncaching NSBundle's "objectForInfoDictionaryKey"


  • Subject: Uncaching NSBundle's "objectForInfoDictionaryKey"
  • From: Bridger Maxwell <email@hidden>
  • Date: Mon, 4 May 2009 21:29:07 -0600

Hello,
My application loads several plugins as NSBundles. During runtime, I would
like the user to be able to drop in a newer version of the plugin. When this
happens, I unload all of the bundles (by calling "unload" and releasing the
bundle), and load the new ones pretty easily. If the new plugin has a
different preview image, it updates accordingly in my application just fine.
However, when I try to get the new version of the bundle via "[myBundle
objectForInfoDictionaryKey:@"CFBundleVersion"]" it always returns the old
version. How can I force it to uncache the old version number?

The strange thing is that in this application I don't even load the code
from the bundle, so I don't think calling "unload" does anything. Are plists
cached automatically? Perhaps that is what I need to reset.

Thank You,
Bridger Maxwell
_______________________________________________

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

  • Prev by Date: Re: Does Cocoa layer translate Objective-C objects to C++?
  • Next by Date: Re: TCPServer Example
  • Previous by thread: Re: Cocoa-dev Digest, Vol 6, Issue 661
  • Next by thread: Correct memory management in -awakeAfterUsingCoder: ?
  • Index(es):
    • Date
    • Thread