Re: App Sandbox Container or Data Directory
Re: App Sandbox Container or Data Directory
- Subject: Re: App Sandbox Container or Data Directory
- From: Kyle Sluder <email@hidden>
- Date: Tue, 23 Oct 2012 13:43:52 -0700
On Tue, Oct 23, 2012, at 01:05 PM, Richard Somers wrote:
> On Oct 23, 2012, at 1:29 PM, Mike Abdullah <email@hidden>
> wrote:
>
> > The sandbox is intended to limit what an *app* can do by itself, not what a *user* can do. Users are free to save things wherever they like; the only entitlement that plays a role in that is com.apple.security.files.user-selected.read-only
>
> Not true. The user can navigate in the save panel to where ever but
> saving to an unapproved location will result in an error. "The document
> could not be saved. You don't have permission."
If by "unapproved" you mean "my app's sandbox hasn't been extended to
include this path" then you are incorrect. The user can choose the
destination, and the NSURL you get back from the open panel will carry
the rights to access that location.
If by "unapproved" you mean "the user my app is running as doesn't have
write permission to this location", then yes that is expected behavior.
--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