In my app which I've almost finished writing, I'm presenting a list of all sub-folders in the user's home folder in an NSOutlineView and I'm loading the selected folder into an NSTableView. From there the user can do things similar to the Finder.
I'm now reading up on sandboxing and I see no mention of the user's Documents folder as an entitlement.
What is the best way to allow the user to see everything in their home folder by default? If they click a button on the toolbar to choose another folder, then I'm sure that will give the app all the permission it needs (based on what I've read), but as for presenting the entire user's home folder by default, I have no idea.
What is the best way to allow the user to see everything in their home folder by default?
There is no way to do that (because it would largely undermine the whole point of the app sandbox). You will have to rework your UI to ask the user to choose the root of the directory hierarchy that they want to browse with your app. This represents explicit consent by the user for your app to access items within that hierarchy.
Once the user has done this you can use a security-scope bookmark to retain access to that hierarchy between launches of your app.
Share and Enjoy
—
Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"