• 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: Long filename, short NSTextField...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Long filename, short NSTextField...


  • Subject: Re: Long filename, short NSTextField...
  • From: "Sean McBride" <email@hidden>
  • Date: Mon, 4 Feb 2008 12:36:37 -0500
  • Organization: Rogue Research

On 2/3/08 2:42 PM, Jurgen Vermeiren said:

>this is probably a newbie question but I can't find any info on how to
>truncate and append "..." to a filename which does not fit in an
>NSTextField. Also, how would I go about doing the same with a full path,
>i.e. truncating at the beginning (the directories) and prepending "..."?
>Should I code it all by hand?

I encourage you not to use NSTextField to show a path.  Instead, use
NSPathControl.

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada

_______________________________________________

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: 
 >Long filename, short NSTextField... (From: "Jurgen Vermeiren" <email@hidden>)

  • Prev by Date: Re: Delegate method of QTMovieView
  • Next by Date: Re: need to not shift row in outline view
  • Previous by thread: Re: Long filename, short NSTextField...
  • Next by thread: Re: Shift-tab in window not working correctly
  • Index(es):
    • Date
    • Thread