Hi all, I have recently been replacing all my Alias Manager use with NSURL & bookmarks.
One thing that has surprised and confused me is the 'keys' parameter to bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error:. The docs say only "An array of names of URL resource properties". It seems that if you provide nil and are later unable to resolve the bookmark, you can't find out *anything* about it, not even its original name or path. With an AliasRecord, you are always able to get basic info like that back. I found one related item in the archives: <http://lists.apple.com/archives/cocoa-dev/2012/Feb/msg00165.html> Is it others' experience as well that it is vital to always at least provide a few basic keys like NSURLNameKey and NSURLParentDirectoryURLKey? And how about NSURLBookmarkCreationOptions? There's NSURLBookmarkCreationMinimalBookmark and NSURLBookmarkCreationSuitableForBookmarkFile. Are they mutually exclusive? How minimal is minimal, and does my key choice impact the definition of 'minimal'? If I provide neither, do I get a superset of minimal or...? It seems the docs are vague here. Thanks, -- ____________________________________________________________ Sean McBride, B. Eng s...@rogue-research.com Rogue Research www.rogue-research.com Mac Software Developer Montréal, Québec, Canada _______________________________________________ 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