Re: +[NSBundle bundleWithPath:] avoiding the cache?
Re: +[NSBundle bundleWithPath:] avoiding the cache?
- Subject: Re: +[NSBundle bundleWithPath:] avoiding the cache?
- From: Andreas Mayer <email@hidden>
- Date: Sun, 31 Oct 2004 07:50:55 +0100
Am 31.10.2004 um 02:07 Uhr schrieb Jim Correia:
I'm using NSBundle to query the Info.plist dictionary of other
bundles. No code is every loaded, so nothing has to be unloaded. As
things stand, I get the wrong answer after the original is replaced.
You need to touch the bundle after modifying the plist:
// In 10.3 we have to touch the app bundle, or this won't work
[[NSFileManager defaultManager] changeFileAttributes:[NSDictionary
dictionaryWithObject:[NSDate date] forKey:NSFileModificationDate]
atPath:[[NSBundle mainBundle] bundlePath]];
Andreas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden