Re: Preferences caching?
Re: Preferences caching?
- Subject: Re: Preferences caching?
- From: Graham Cox <email@hidden>
- Date: Wed, 27 Nov 2013 21:12:17 +0100
On 27 Nov 2013, at 9:00 pm, Kyle Sluder <email@hidden> wrote:
> On Wed, Nov 27, 2013, at 11:53 AM, Graham Cox wrote:
>> So let me turn this into a dev question then. Do I need to actually run a
>> command line task to do this, or is there some API I can use? For
>> example, what does + resetStandardUserDefaults achieve? Anything useful
>> in this case?
>
> Not what you want.
>
> Use -[NSUserDefaults removePersistentDomainForName:] with your app's
> bundle ID.
Thanks, that’s a good one to know. The documentation doesn’t even begin to suggest this method would be appropriate.
Am I right in thinking I’ll have to also reload my defaults plist and use -registerDefaults: after this?
—Graham
_______________________________________________
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