On 3 Oct 2012, at 21:34, Quincey Morris <quinceymor...@rivergatesoftware.com> 
wrote:

> On Oct 3, 2012, at 12:44 , Marshall Houskeeper <mhouskee...@media100.com> 
> 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 (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

Reply via email to