Our plan is to use Security-Scoped Bookmarks for all new documents to store external file references when we go to the sandbox environment. In our use case, I would guess that none of the external referenced files would be stored in our sandbox.
The problem that I have is opening old documents that where created pre sandboxing or documents that where created on Windows and copied to the Mac with their associated external files. I would be very interested in knowing how Final Cut plans to handle similar problems. Marshall On Oct 3, 2012, at 2:38 PM, Quincey Morris wrote: > On Oct 3, 2012, at 11:06 , Charles Srstka <cocoa...@charlessoft.com> wrote: > >> is there a way to just ask for permission to open a specific file and have >> a "Cancel or allow" box come up > > You can use the 'NSOpenSavePanelDelegate' protocol to validate whatever the > user chooses, or you can just validate the returned URL when the open panel > is completed. There's no way to tell the panel to freeze itself on a specific > file. > > > On Oct 3, 2012, at 08:15 , Marshall Houskeeper <mhouskee...@media100.com> > wrote: > >> When we move to a sandbox environment, we will store Security-Scoped >> Bookmarks. > > > In the absence of further information, I don't see how this plan to store > bookmarks is going to work. You can only create security-scoped bookmarks to > items you have access to. > > If an item is in your sandbox, you don't need the bookmark at all (for > security reasons, anyway). If the item is *not* in your sandbox, then you're > going to have to ask the user for access -- possibly thousands of times. > > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com