Bob Keeney wrote:
Thanks for all your hard work on this Sam. I will be putting some of your code to the test to see if I can get an app through the MAS.
Spend a while and examine the demo application I've posted. It'll show you how to replace the open and save dialogs with the OSADialog class (which is the only way I've found to do Open & Save in a Carbon Sandboxed application).
Take a look at the SandboxsafeRecentItems also, as this will show you how you can store file references that can be re-accessed in subsequent launches.
I'm sorry I haven't written any documentation yet.
Now the bad part, Mac OS X 10.7-7.2 are really bad with Sandboxed applications, by default they don't seem to like Carbon Sandboxed applications (immediately crash before any code is executed). Cocoa apps don't seem to have this problem, I've written to ADC hoping that Apple can show me if I'm doing something wrong.
Plus file references don't work at all on these versions of the Mac OS, at least not in my testing. Again I'm hoping Apple can shed some light (it seems these version already break file refs, without providing any secure method. 10.7.3 added a secure method, which works with my code). A temporary solution, might be to add a Temporary Entitlement allowing access to the whole drive. Although I haven't tested it yet.