Re: NSUserDefaults not sticking
Re: NSUserDefaults not sticking
- Subject: Re: NSUserDefaults not sticking
- From: Charles Srstka <email@hidden>
- Date: Wed, 10 Sep 2014 22:59:11 -0500
On Sep 10, 2014, at 10:50 PM, Graham Cox <email@hidden> wrote:
> On 11 Sep 2014, at 1:19 pm, Charles Srstka <email@hidden> wrote:
>
>> NSDictionary *domain = [def persistentDomainForName:@"com.apple.TextEdit"];
>
>
> The documentation states that this is not supported under sandboxing.
>
> When you say "does not ... work", you really need to make clear what you mean.
Fair point; sorry about that. Was in a hurry.
The basic point is that NSUserDefaults and /usr/bin/defaults behave very differently when trying to access the preferences of a sandboxed application, suggesting that the latter is not a simple wrapper around the former.
Charles
_______________________________________________
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