• 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
Re: +[NSBundle bundleWithPath:] avoiding the cache?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: +[NSBundle bundleWithPath:] avoiding the cache?


  • Subject: Re: +[NSBundle bundleWithPath:] avoiding the cache?
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Sun, 31 Oct 2004 00:32:21 +0200

At 16:05 Uhr -0400 28.10.2004, 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.

I don't think Cocoa code can be unloaded from an application, which would imply that Cocoa couldn't unload the old bundle to load the new one, and would thus mean the cache is a Good Thing(tm).
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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
  • Follow-Ups:
    • Re: +[NSBundle bundleWithPath:] avoiding the cache?
      • From: Jim Correia <email@hidden>
References: 
 >+[NSBundle bundleWithPath:] avoiding the cache? (From: Jim Correia <email@hidden>)

  • Prev by Date: Re: Building a panel with templated views?
  • Next by Date: Re: How do I get the compiler to warn me if I forget to return self?
  • Previous by thread: +[NSBundle bundleWithPath:] avoiding the cache?
  • Next by thread: Re: +[NSBundle bundleWithPath:] avoiding the cache?
  • Index(es):
    • Date
    • Thread