Re: Suggestions for handling old document files with file paths in a sandbox environment

2012-10-04 Thread Mike Abdullah
On 4 Oct 2012, at 20:18, Marshall Houskeeper wrote: > Hi Mike, > > Our products are a video/audio editor application and video effect plugins. > In both cases, our file formats (data block for plugin data) can store many > file references. Our files keep references to file types such as

Re: Suggestions for handling old document files with file paths in a sandbox environment

2012-10-04 Thread Marshall Houskeeper
Hi Mike, Our products are a video/audio editor application and video effect plugins. In both cases, our file formats (data block for plugin data) can store many file references. Our files keep references to file types such as quicktime movies, audio files and text files as well as links to

Re: Suggestions for handling old document files with file paths in a sandbox environment

2012-10-04 Thread Mike Abdullah
On 3 Oct 2012, at 22:02, Marshall Houskeeper wrote: > > Hi Quincey, > > I have no problem with the use of the open panel ( security-scoped bookmark > )for creating new documents. The problem is for pre sandboxed documents or > documents that come from Windows. Having the user re-authorize

Re: Suggestions for handling old document files with file paths in a sandbox environment

2012-10-04 Thread Mike Abdullah
On 3 Oct 2012, at 21:34, Quincey Morris wrote: > On Oct 3, 2012, at 12:44 , Marshall Houskeeper > wrote: > >> 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

Re: Suggestions for handling old document files with file paths in a sandbox environment

2012-10-04 Thread Mike Abdullah
On 3 Oct 2012, at 19:48, Sean McBride wrote: > On Wed, 3 Oct 2012 11:38:10 -0700, Quincey Morris said: > >> 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

Re: Suggestions for handling old document files with file paths in a sandbox environment

2012-10-04 Thread Mike Abdullah
On 3 Oct 2012, at 18:18, Sean McBride wrote: > On Wed, 3 Oct 2012 11:15:48 -0400, Marshall Houskeeper said: > >> Our document file format currently stores file paths and file alias to >> external files. We can potentially have several thousand references to >> external files stored in a documen

Re: Suggestions for handling old document files with file paths in a sandbox environment

2012-10-04 Thread Mike Abdullah
On 3 Oct 2012, at 16:15, Marshall Houskeeper wrote: > > Our document file format currently stores file paths and file alias to > external files. We can potentially have several thousand references to > external files stored in a document. When we move to a sandbox environment, > we will stor

Re: Suggestions for handling old document files with file paths in a sandbox environment

2012-10-03 Thread Quincey Morris
On Oct 3, 2012, at 14:02 , Marshall Houskeeper wrote: > I have no problem with the use of the open panel ( security-scoped bookmark > )for creating new documents. OK, understood. > The problem is for pre sandboxed documents or documents that come from > Windows. Having the user re-authoriz

Re: Suggestions for handling old document files with file paths in a sandbox environment

2012-10-03 Thread Marshall Houskeeper
Hi Quincey, I have no problem with the use of the open panel ( security-scoped bookmark )for creating new documents. The problem is for pre sandboxed documents or documents that come from Windows. Having the user re-authorize each external file would be very problematic and time consuming.

Re: Suggestions for handling old document files with file paths in a sandbox environment

2012-10-03 Thread Quincey Morris
On Oct 3, 2012, at 12:44 , Marshall Houskeeper wrote: > 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

Re: Suggestions for handling old document files with file paths in a sandbox environment

2012-10-03 Thread Marshall Houskeeper
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 docum

Re: Suggestions for handling old document files with file paths in a sandbox environment

2012-10-03 Thread Charles Srstka
On Oct 3, 2012, at 1:38 PM, Quincey Morris wrote: > On Oct 3, 2012, at 11:06 , Charles Srstka 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

Re: Suggestions for handling old document files with file paths in a sandbox environment

2012-10-03 Thread Sean McBride
On Wed, 3 Oct 2012 11:38:10 -0700, Quincey Morris said: >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. Which is of cour

Re: Suggestions for handling old document files with file paths in a sandbox environment

2012-10-03 Thread Quincey Morris
On Oct 3, 2012, at 11:06 , Charles Srstka 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 w

Re: Suggestions for handling old document files with file paths in a sandbox environment

2012-10-03 Thread Charles Srstka
On Oct 3, 2012, at 12:18 PM, Sean McBride wrote: > On Wed, 3 Oct 2012 11:15:48 -0400, Marshall Houskeeper said: > >> Our document file format currently stores file paths and file alias to >> external files. We can potentially have several thousand references to >> external files stored in a docu

Re: Suggestions for handling old document files with file paths in a sandbox environment

2012-10-03 Thread Sean McBride
On Wed, 3 Oct 2012 11:15:48 -0400, Marshall Houskeeper said: >Our document file format currently stores file paths and file alias to >external files. We can potentially have several thousand references to >external files stored in a document. When we move to a sandbox >environment, we will store S