Re: NSTextView and front/middle/back ellipses
Re: NSTextView and front/middle/back ellipses
- Subject: Re: NSTextView and front/middle/back ellipses
- From: Harry Plate <email@hidden>
- Date: Fri, 23 Jan 2009 13:43:59 -0800
- Thread-topic: NSTextView and front/middle/back ellipses
Randall,
<snip>
>> How can I tell NSTextView to use a "front" or "middle" ellipses for
>> viewing
>> purposes?
>
> You'll have to set a (mutable) paragraph style, and specify
> NSLineBreakByTruncatingHead or NSLineBreakByTruncatingMiddle for the
> NSLineBreakMode using -setLineBreakMode:.
Thanks a bunch! The hint led me to "Breaking Lines by Truncation" in the
"Rulers and Paragraph Styles" doc. Within that are some very useful code
fragments illustrating what to do.
I'm off to the races,
-harry
_______________________________________________
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