Re: +[NSBundle bundleWithPath:] avoiding the cache?
Re: +[NSBundle bundleWithPath:] avoiding the cache?
- Subject: Re: +[NSBundle bundleWithPath:] avoiding the cache?
- From: Douglas Davidson <email@hidden>
- Date: Sun, 31 Oct 2004 12:57:01 -0800
On Oct 28, 2004, at 1:05 PM, Jim Correia wrote:
Is there a way to tell NSBundle that it should invalidate the cache
for a certain entry (or no longer cache it?)
If I get a bundle back from +[NSBundle bundleWithPath:] and then that
bundle is replaced in the filesystem, next time I do +[NSBundle
bundleWithPath:] I get backed the cached instance with stale values in
the info dictionary.
For one-shot inquiries you can use things like
CFBundleCopyInfoDictionaryInDirectory() instead.
Douglas Davidson
_______________________________________________
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