• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Suggestions for handling old document files with file paths in a sandbox environment
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Suggestions for handling old document files with file paths in a sandbox environment
      • From: Marshall Houskeeper <email@hidden>
    • Re: Suggestions for handling old document files with file paths in a sandbox environment
      • From: Charles Srstka <email@hidden>
    • Re: Suggestions for handling old document files with file paths in a sandbox environment
      • From: Sean McBride <email@hidden>
References: 
 >Suggestions for handling old document files with file paths in a sandbox environment (From: Marshall Houskeeper <email@hidden>)
 >Re: Suggestions for handling old document files with file paths in a sandbox environment (From: Sean McBride <email@hidden>)
 >Re: Suggestions for handling old document files with file paths in a sandbox environment (From: Charles Srstka <email@hidden>)

  • Prev by Date: Re: Suggestions for handling old document files with file paths in a sandbox environment
  • Next by Date: Re: Suggestions for handling old document files with file paths in a sandbox environment
  • Previous by thread: Re: Suggestions for handling old document files with file paths in a sandbox environment
  • Next by thread: Re: Suggestions for handling old document files with file paths in a sandbox environment
  • Index(es):
    • Date
    • Thread