Re: Best way to get a file path for presentation to the user
Re: Best way to get a file path for presentation to the user
- Subject: Re: Best way to get a file path for presentation to the user
- From: Jens Alfke <email@hidden>
- Date: Sat, 19 Dec 2015 13:34:57 -0800
> On Dec 19, 2015, at 12:57 AM, Graham Cox <email@hidden> wrote:
>
> Actually - heh, -displayNameAtPath: really strips it back to just the folder name, with no path at all. That doesn’t tell the user *where* the folder is. Unless they’re already familiar with the location it’s likely less helpful than ~/path/to/folder
Use -componentsToDisplayForPath: instead, then join the strings with a separator like “ ‣ ”. Apple does this in a few places, i.e. in the El Capitan Spotlights result window when you hold down the Cmd key to see the path to the selected hit.
—Jens
_______________________________________________
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