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

Security-scoped bookmark feature?


  • Subject: Security-scoped bookmark feature?
  • From: Todd Heberlein <email@hidden>
  • Date: Sun, 02 Sep 2012 16:04:23 -0700

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.

Todd

_______________________________________________

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

  • Prev by Date: Re: Prevent display of PDF controls in a WebView
  • Next by Date: Re: Seeking advice re: placement of UndoManager
  • Previous by thread: Re: Seeking advice re: placement of UndoManager
  • Next by thread: Re: Security-scoped bookmark feature?
  • Index(es):
    • Date
    • Thread