Re: Suggestions for handling old document files with file paths in a sandbox environment
Re: Suggestions for handling old document files with file paths in a sandbox environment
- Subject: Re: Suggestions for handling old document files with file paths in a sandbox environment
- From: Mike Abdullah <email@hidden>
- Date: Thu, 04 Oct 2012 18:05:46 +0100
On 3 Oct 2012, at 21:34, Quincey Morris <email@hidden> wrote:
> On Oct 3, 2012, at 12:44 , Marshall Houskeeper <email@hidden> 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 in our sandbox.
>
> What I'm saying is, for all *new* documents, you can't create security-scoped bookmarks unless the user has authorized each (via the open panel). Thus, even for future documents, if they contain thousands of references via bookmarks, then you would have had to get them through the open panel thousands of times.
>
> Of course, this is the worst case. If the user is actually adding (say) hundreds of files from a single folder, then presumably you'd might have the user choose the folder and create a bookmark to the folder rather than the files.
>
> But the point is that AFAIK:
>
> 1 security-scoped bookmark == 1 visit to the open panel
Not strictly true. All you need to generate a security-scoped bookmark is write access to the file. This may be obtained by open/save panel, or pasteboard for the specific file. But it may also be obtained by open panel, security-scoped bookmark, or temporary entitlement for a parent directory.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden