PDA

View Full Version : Sandbox Compliant?




Nielsenius
Dec 28, 2013, 09:52 PM
I'm working on an OS X app that requires recursive read and write access to user-specified directories. Based on settings provided by the user, my app may delete directories and files, as well. Is this behavior permitted to a sandboxed app? The answer to this question may be complicated due to the recursive nature of the app, which is why I ask.



slayerizer
Jan 6, 2014, 08:57 AM
I'm working on an OS X app that requires recursive read and write access to user-specified directories. Based on settings provided by the user, my app may delete directories and files, as well. Is this behavior permitted to a sandboxed app? The answer to this question may be complicated due to the recursive nature of the app, which is why I ask.

should work, in my app the user can select a folder that I requested read/write to it. Under that folder, I create/delete filesystem objects (files and dir) with no issues. You just need to select the entitlement `custom user selected directory` (or something like that).

Nielsenius
Jan 7, 2014, 12:01 PM
should work, in my app the user can select a folder that I requested read/write to it. Under that folder, I create/delete filesystem objects (files and dir) with no issues. You just need to select the entitlement `custom user selected directory` (or something like that).
Thanks for clarifying that for me. Also, thanks for your response in my app icon thread!

2012Tony2012
May 2, 2014, 05:29 PM
MacOS is already "sandboxed" as if anything from a web browser etc wants to change or add anything to your Mac, a pop up window would appear asking for your password.

So you can use any web browser and visit any website, even if you accidently visit a nasty and vicious website, the scripts etc cannot do anything to your Mac without you entering a password.