Security-scoped bookmark feature?
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