Re: dealing with alias files, finding URL to target file
Re: dealing with alias files, finding URL to target file
- Subject: Re: dealing with alias files, finding URL to target file
- From: Ken Thomases <email@hidden>
- Date: Fri, 15 Apr 2011 11:22:45 -0500
On Apr 15, 2011, at 11:16 AM, Sean McBride wrote:
> On Fri, 15 Apr 2011 10:44:06 -0500, Ken Thomases said:
>
>> Yes. Bookmark data is the modern replacement for alias records. The
>> new bookmark APIs are backward compatible with aliases, including alias
>> files. See the documentation for +[NSURL
>> bookmarkDataWithContentsOfURL:error:]. You'd follow that with -
>> URLByResolvingBookmarkData:options:relativeToURL:bookmarkDataIsStale:error:.
>
> Yeah, that works, but is not easy.
Eh, seems easy enough to me.
> I find it quite strange that there is a URLByResolvingSymlinksInPath
> method, but no corresponding method to change a URL to an alias file
> into a URL to the target file.
Create a single method in a category on NSURL, if you like.
Cheers,
Ken
_______________________________________________
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