On 03/09/2012, at 9:04 AM, Todd Heberlein <todd_heberl...@mac.com> 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 (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com