Re: NSTextView and front/middle/back ellipses
Re: NSTextView and front/middle/back ellipses
- Subject: Re: NSTextView and front/middle/back ellipses
- From: Randall Meadows <email@hidden>
- Date: Thu, 22 Jan 2009 11:17:36 -0700
On Jan 22, 2009, at 11:03 AM, Harry Plate wrote:
I have a simple text view that will display its text information
with an
ellipses on the right (end) if the string is too long for the view.
Nice,
but...
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:.
_______________________________________________
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