Re: How to clear macOS app bundle cache
Re: How to clear macOS app bundle cache
- Subject: Re: How to clear macOS app bundle cache
- From: Jeff Szuhay <email@hidden>
- Date: Wed, 05 Sep 2018 21:23:36 -0700
Did you try clearing the defaults persistent domain in your code?
Something like the following (the juicy bits are in red) :
NSUserDefaults * myAppDefaults;
myAppDefaults = [[NSUserDefaults alloc] initWithSuiteName: (NSString*)
myAppBundleID ];
then, to clear:
#if defined RESET_MY_APP_DEFAULTS
[myAppDefaults removePersistentDomainForName: (NSString*)
myAppBundleID ];
#endif
// defaults intialization code here.
This seemed to work for me.
This comes from http://www.borkware.com/quickies
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden