Re: Delete NSDefaults while running
Re: Delete NSDefaults while running
- Subject: Re: Delete NSDefaults while running
- From: Jens Alfke <email@hidden>
- Date: Sat, 19 Apr 2008 08:30:58 -0700
On 19 Apr '08, at 8:04 AM, Kevin Grant wrote:
[[[NSUserDefaults alloc] init]
removePersistentDomainForName:@"com.yourdomain.yourapp"];
I think that should work. To be safe, call
[[NSUserDefaults standardUserDefaults] synchronize];
first; otherwise if there are any unsaved changes to the defaults,
they might get written out after the file gets deleted, thereby re-
creating it.
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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