FROM : Sean McBride
DATE : Mon Feb 04 18:36:37 2008
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_removed>
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
DATE : Mon Feb 04 18:36:37 2008
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_removed>
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
| Related mails | Author | Date |
|---|---|---|
| Jurgen Vermeiren | Feb 3, 14:42 | |
| Ricky Sharp | Feb 3, 15:38 | |
| Sean McBride | Feb 4, 18:36 |






Cocoa mail archive

