• 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: Mike Abdullah <email@hidden>
  • Date: Thu, 04 Oct 2012 17:58:31 +0100

On 3 Oct 2012, at 16:15, Marshall Houskeeper <email@hidden> 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 store Security-Scoped Bookmarks.
>
> What is the suggested method to handling old documents with with external file references in a sandbox environment?

Arguably, here's what should (have) happen(ed):

1. March 2012, OS X 10.7.3 introduces security-scoped bookmarks. You update your app to start generating them
2. June 2012, sandboxing deadline for App Store. You update your app to be sandboxed at some point around then or later. Most documents already use security-scoped bookmarks. For those that don't, prompt using open panel

By leaving it until now to worry about security-scoped bookmarks, you've placed yourself at a bit of a disadvantage.

How are you currently storing references to external files? Bookmarks, aliases or raw paths? Ideally you'd already be storing bookmark data, so it's no change to the document format to add in security-scoped info too.

Similarly, bookmark resolution can always fail because the file has been deleted or moved somewhere the system doesn't recognise. If this happens you ought to provide some sort of alert to the user, including an open panel to locate the file or its replacement. Upgrading to a security-scoped bookmark can follow the same pattern.

Of course, with a large quantity of files that could become a big pain. In which case your best bet is to use the open panel to locate the *folder* containing a number of the files. That grants you access to all the other files within the folder.


_______________________________________________

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

References: 
 >Suggestions for handling old document files with file paths in a sandbox environment (From: Marshall Houskeeper <email@hidden>)

  • Prev by Date: Re: Constraints Question
  • Next by Date: Re: build compatibility for iOS
  • Previous by thread: Re: Suggestions for handling old document files with file paths in a sandbox environment
  • Next by thread: NSURLConnection working OK on iOS 6?
  • Index(es):
    • Date
    • Thread