Sandboxing needs to support project-based apps
| Originator: | oliver.drobnik | ||
| Number: | rdar://10460259 | Date Originated: | 11/17/2011 |
| Status: | Open | Resolved: | |
| Product: | Mac OS X | Product Version: | 10.7.2 |
| Classification: | Enhancement | Reproducible: | Always |
Mac OS X Sandboxing needs a way to allow apps like Xcode where the user would open the xcodeproj folder, but the app also needs to access files in the same folder or subfolders. My concrete example is our Mac App Store app Linguan. This parses the xcodeproj for the structure of the project and then needs to read and modify the Localizable.strings files which are located in the lang.lproj subfolders. This can be solved either by a permanent exception allowing Linguan to access all files everywhere, or by the following idea: How about adding a file access mode that exceeds the sandbox access to the whole folder if the user selects a file? Without such a solution I would have to make my app clunkier to use because I would have to change it for users to open the whole project folder instead of the xcodeproj. This is inconvenient because right now the app can register itself for .strings and .xcodeproj "files" to open these via "Open In". You cannot however register folders to be openable by your app. Also another problem for the user is that I would have to explain to him why he no longer can open the xcodeproj but instead needs to select the folder. Linguan has two modes (single strings file, project mode) which presently are both accessible via the same open file menu. So by extending Sandboxing as suggested above you still permit the same unified experience by the user while still limiting access to files outside of the chosen project.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
Very important! Totally agree!