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: Quincey Morris <email@hidden>
- Date: Wed, 03 Oct 2012 11:38:10 -0700
On Oct 3, 2012, at 11:06 , Charles Srstka <email@hidden> 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 <email@hidden> 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 (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