Re: Sandboxing. WTF?
Re: Sandboxing. WTF?
- Subject: Re: Sandboxing. WTF?
- From: Michael Nickerson <email@hidden>
- Date: Wed, 30 May 2012 10:44:05 -0400
On May 28, 2012, at 5:51 AM, Graham Cox <email@hidden> wrote:
>
> On 28/05/2012, at 7:31 PM, Roland King wrote:
>
>> The way I read it is you register the entitlement exactly as you have been doing, as a user entitlement to Library/<whatever>. Then at runtime you use getpwuid() to find an absolute path to the actual user's home directory, construct the Library/<whatever> on top of that as an absolute (and of course dynamic depending on the user) path and open the file there. If my understanding is correct, the generic user entitlement you added will give you access to th
>
> That sounds fine, except that CFPreferencesCopyAppValue doesn't take a path, just a bundle ID and key. I can't see an alternative API that takes a path - are you saying I have to open the file and parse it myself? While that isn't too hard, it seems to be going against the point of having an API for preferences which isolate you from format changes and file system details and so on.
>
> --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
_______________________________________________
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