Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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




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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.