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

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to