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