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 (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]