Re: Finder-like conversion of a fileURL to 'user-friendly' path
Re: Finder-like conversion of a fileURL to 'user-friendly' path
- Subject: Re: Finder-like conversion of a fileURL to 'user-friendly' path
- From: Ken Thomases <email@hidden>
- Date: Thu, 1 Jul 2010 12:46:33 -0500
On Jul 1, 2010, at 12:33 PM, Kevin Wojniak wrote:
> On Jul 1, 2010, at 10:29 AM, Rainer Standke wrote:
>
>> At the bottom of each finder window there is a 'path' display that indicates the path to the directory represented by the window. I'd like to be able to convert a path like this one: 'file://localhost/Users/rainer/Desktop/S&S material/hidden/' to some like: 'MacHD/Users/rainer/Desktop/S&S material/hidden'.
>>
>> I have pieced some things together myself, but the whole thing is a mess. Is there a way to access the same mechanism the Finder is obviously using?
>
> Use -[NSURL path] to get the unix-style path format.
He doesn't want the unix-style path format. He specifically asked about the display path.
In particular, -[NSFileManager componentsToDisplayForPath:]. Or, if he actually wants to present a path control like he's referring to the Finder having, NSPathControl.
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