Re: Preferences caching?
Re: Preferences caching?
- Subject: Re: Preferences caching?
- From: Kyle Sluder <email@hidden>
- Date: Tue, 10 Dec 2013 10:43:51 -0800
On Dec 10, 2013, at 10:38 AM, Charles Srstka <email@hidden> wrote:
>
> How about sandboxed applications? Their preference files are opaque to NSUserDefaults, and only sometimes visible to /usr/bin/defaults. How should one delete a corrupted plist file in a sandbox?
Not sure what you mean by "opaque." If you mean that NSUserDefaults can't read from another app's sandbox, then that is obviously by design.
As far as defaults(1), that should always be able to find a sandboxed app's preferences. If it can't, file a bug.
One workaround might be to killall cfprefsd, nuke the plist, and killall cfprefsd again.
--Kyle Sluder
_______________________________________________
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