When I last wrote a Mac app, it was before the days of sandboxing and entitlements. Before I start converting an app to Swift (and learning Swift), I want to get confirmation that this is possible.
Will my app be able to open a file to analyze it? I don't have to be able to save the file; I only need access to the Mac's file structure and the ability to open a file that the user already has access to.
If so, I'm assuming that the user has to grant permission, either temporary or permanent. Is that done through the Security & Privacy dialog box in System preferences? Or will the user be prompted at runtime when the app tries to open a file?
Can such an app be approved for the Mac App Store?
Will my app be able to open a file to analyze it? I don't have to be able to save the file; I only need access to the Mac's file structure and the ability to open a file that the user already has access to.
If so, I'm assuming that the user has to grant permission, either temporary or permanent. Is that done through the Security & Privacy dialog box in System preferences? Or will the user be prompted at runtime when the app tries to open a file?
Can such an app be approved for the Mac App Store?
No. You typically do this through the standard open and save panels. If you present an open panel and the user uses that to choose a file, the system extends your app’s sandbox so that it can open that file.If so, I'm assuming that the user has to grant permission, either
temporary or permanent. Is that done through the Security & Privacy
dialog box in System preferences?
There’s a bunch of info on this topic in the App Sandbox Design Guide.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"