• 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: Sandboxing and file references
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sandboxing and file references


  • Subject: Re: Sandboxing and file references
  • From: Jerry Krinock <email@hidden>
  • Date: Tue, 20 Sep 2011 11:35:19 -0700

On 2011 Sep 20, at 08:48, Keith Duncan wrote:

> Any URLs an application encodes into it's restorable state archive (resume support is required for any open windows for automatic termination to actually quit an application) will be accessible in terms of sandboxing when the application is relaunched.

This is surprising, but indeed it is stated in the WWDC video.

It implies that I can

• Claim a *user-selected* entitlement
• Present an NSOpenPanel the first time my app runs
• Ask the user select a file, directory, or even a whole drive
• Stash this URL in a recoverable instance variable in NSApplication

At first I was thinking that this would give my app a permanent entitlement to whatever URL was selected.  But what if the user restarts and clicks "Don't restore windows".  Wouldn't that break it?

_______________________________________________

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: Sandboxing and file references
      • From: Keith Duncan <email@hidden>
References: 
 >Sandboxing and file references (From: Peter N Lewis <email@hidden>)
 >Re: Sandboxing and file references (From: Tim Schröder <email@hidden>)
 >Re: Sandboxing and file references (From: Torsten Curdt <email@hidden>)
 >Re: Sandboxing and file references (From: Keith Duncan <email@hidden>)

  • Prev by Date: Re: NSDocument - based application and "--Edited" string in window title
  • Next by Date: Re: NSDocument - based application and "--Edited" string in window title
  • Previous by thread: Re: Sandboxing and file references
  • Next by thread: Re: Sandboxing and file references
  • Index(es):
    • Date
    • Thread