Re: NSUserDefaults not sticking
Re: NSUserDefaults not sticking
- Subject: Re: NSUserDefaults not sticking
- From: "Rick C." <email@hidden>
- Date: Thu, 11 Sep 2014 12:07:09 +0800
This is all very interesting and shows that there are issues out there, but back to my original issue if I’m writing and reading via NSUserDefaults and its not returning the expected values what else could be the trouble?
rc
On Sep 11, 2014, at 11:59 AM, Charles Srstka <email@hidden> wrote:
> 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
_______________________________________________
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