FROM : Douglas Davidson
DATE : Sun Oct 31 21:57:01 2004
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
DATE : Sun Oct 31 21:57:01 2004
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
| Related mails | Author | Date |
|---|---|---|
| Jim Correia | Oct 28, 22:05 | |
| M. Uli Kusterer | Oct 31, 00:32 | |
| Jim Correia | Oct 31, 02:07 | |
| Andreas Mayer | Oct 31, 07:50 | |
| Douglas Davidson | Oct 31, 21:57 | |
| Jim Correia | Oct 31, 22:02 |






Cocoa mail archive

