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 (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

Reply via email to