Re: Delete NSDefaults while running
Re: Delete NSDefaults while running
- Subject: Re: Delete NSDefaults while running
- From: Kevin Grant <email@hidden>
- Date: Sat, 19 Apr 2008 10:04:38 -0500
I've used this to delete preferences file before:
[[[NSUserDefaults alloc] init]
removePersistentDomainForName:@"com.yourdomain.yourapp"];
Although I've only used it with side domains I'd created,
I'm not sure if it works for *the* main preferences file.
Kevin G.
Hi,
How would one go about deleting the preference file of a running
application while in the application? or is there a way to run a
application/command and then relaunch the application after its all
completed?
The main purpose is i want one of my programs to be more self
repairing and often the easiest fix to the problem is a reinstall
the components one by one until it fixes.
_______________________________________________
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