• 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: Security-scoped bookmark feature?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Security-scoped bookmark feature?


  • Subject: Re: Security-scoped bookmark feature?
  • From: Graham Cox <email@hidden>
  • Date: Mon, 03 Sep 2012 09:25:06 +1000

On 03/09/2012, at 9:04 AM, Todd Heberlein <email@hidden> wrote:

> I ran across an interesting behavior and potentially useful feature with security scoped bookmarks. I hadn't run across this in my reading before. Is this an official behavior?
>
> It turns out that once you've created an app-scoped bookmark for a file (after the user selected it in an OpenPanel), you can rename or move (same thing I guess) the file, and the bookmark still blesses it. And extracting the file path from the bookmark data gives you the new path, not the original one. So you can move the file around, and the program can still find it and access it through the bookmark.
>
> Pretty cool. Even if you weren't doing the bookmarking for sandboxing, I think it is a handy feature.


I think what you're really seeing is the benefit of bookmarks in general. They track files in the same way that olde-worlde aliases did. The security-scoping is a new graft-on for bookmarks, and presumably are applied after the bookmark has been resolved, and so I would expect the outcome you're seeing.

--Graham



_______________________________________________

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: 
 >Security-scoped bookmark feature? (From: Todd Heberlein <email@hidden>)

  • Prev by Date: Re: Seeking advice re: placement of UndoManager
  • Next by Date: Re: Code Signing for Mountain Lion
  • Previous by thread: Security-scoped bookmark feature?
  • Next by thread: Create custom NSTableView with a button inside
  • Index(es):
    • Date
    • Thread