Re: How to tell if a file is writable in sandboxed mode?
Re: How to tell if a file is writable in sandboxed mode?
- Subject: Re: How to tell if a file is writable in sandboxed mode?
- From: Kyle Sluder <email@hidden>
- Date: Wed, 13 Nov 2013 23:50:49 -0800
On Nov 13, 2013, at 10:19 PM, Oleg Krupnov <email@hidden> wrote:
> And as always, my design is asked to be reconsidered. No one wants to
> reconsider design of the sandbox itself, that *IS* creating so much
> pain in the ass for everyone :)
Because we can't change the sandbox by discussing it on this list.
> BTW this bug affects many apps in the App
> Store which need to write and delete files in folders. I have already
> filed this bug to Apple and in the meantime, I need to give some kind
> of instruction to the user. To do this I need to know if there is no
> access due to file permissions (normal case) or due to sandbox
> (Mavericks bug).
Sounds like you could just provide an alert with some descriptive text like “Could not access folder. It may be possible to browse for this folder manually.” And offer two buttons: “Cancel” and “Browse…” which opens an NSOpenPanel.
--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