• 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: 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
References: 
 >+[NSBundle bundleWithPath:] avoiding the cache? (From: Jim Correia <email@hidden>)
 >Re: +[NSBundle bundleWithPath:] avoiding the cache? (From: "M. Uli Kusterer" <email@hidden>)
 >Re: +[NSBundle bundleWithPath:] avoiding the cache? (From: Jim Correia <email@hidden>)

  • Prev by Date: Re: Cocoa-dev Digest, Vol 1, Issue 210
  • Next by Date: Re: Cocoa Binding-PullDown Button Issue
  • Previous by thread: Re: +[NSBundle bundleWithPath:] avoiding the cache?
  • Next by thread: Re: +[NSBundle bundleWithPath:] avoiding the cache?
  • Index(es):
    • Date
    • Thread