• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Best way to get a file path for presentation to the user
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Best way to get a file path for presentation to the user (From: Graham Cox <email@hidden>)
 >Re: Best way to get a file path for presentation to the user (From: Jens Alfke <email@hidden>)
 >Re: Best way to get a file path for presentation to the user (From: Graham Cox <email@hidden>)
 >Re: Best way to get a file path for presentation to the user (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Translating offset from crash dump
  • Next by Date: Re: Best way to get a file path for presentation to the user
  • Previous by thread: Re: Best way to get a file path for presentation to the user
  • Next by thread: RE: Best way to get a file path for presentation to the user
  • Index(es):
    • Date
    • Thread