• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Delete NSDefaults while running
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Delete NSDefaults while running
      • From: Jens Alfke <email@hidden>
References: 
 >Delete NSDefaults while running (From: Andrew James <email@hidden>)

  • Prev by Date: Re: Subclassing
  • Next by Date: Re: running out of NSPipes
  • Previous by thread: Delete NSDefaults while running
  • Next by thread: Re: Delete NSDefaults while running
  • Index(es):
    • Date
    • Thread