Uncaching NSBundle's "objectForInfoDictionaryKey"
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