Re: URLByResolvingBookmarkData: crashes on 10.8
Re: URLByResolvingBookmarkData: crashes on 10.8
- Subject: Re: URLByResolvingBookmarkData: crashes on 10.8
- From: Jerry Krinock <email@hidden>
- Date: Tue, 05 Nov 2013 13:27:56 -0800
I haven’t seen any crashes like that, but a few weeks ago, while “modernizing" an app, migrating from the old Alias Manager functions to the newer NSURL bookmarks, I learned something interesting.
When I tried to resolve an alias which was on a previously-mounted but currently-unreachable volume, +[NSURL URLByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:] returned errors in the NSOSStatusErrorDomain, with localized description ending in "Function=FSResolveAlias". And it also blocked the thread for 30 seconds, before displaying a confusihg modal alert to the user, just like FSResolveAlias() does.
So, although there are some additional bits in the typical alias data, it looks like NSURL bookmarks are based on the old Alias Manager.
_______________________________________________
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