• 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: Uli Kusterer <email@hidden>
  • Date: Sun, 20 Dec 2015 09:48:27 +0100

On 19 Dec 2015, at 09:51, Graham Cox <email@hidden> wrote:
> My use case is an interface that sets up a batch of files for saving in a particular folder. The user chooses the folder using a standard NSOpenPanel, but I want to display the chosen location in the UI so that they don’t need to remember it. I don’t think a NSPathControl is really appropriate for this.

 What gives you that impression? That seems to be exactly what it was made for.

> But I do want the string to be the most understandable for the user. I don’t know really how many average users understand what ~/ means, but it’s probably the best I can do.

 "~" is a nerd thing. If you're in any way in touch with whoever does your support, you don't want to add something this confusing to your GUI. What I did in UKFilePathView is just shorten the path at the start to a point of interest when displaying it, e.g. having the path display just start at the home folder and using the file icon to have the user recognize it is a user folder.

Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://stacksmith.org





_______________________________________________

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>)

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