• 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: NSTextView and front/middle/back ellipses
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: NSTextView and front/middle/back ellipses (From: Randall Meadows <email@hidden>)

  • Prev by Date: Accessing private members of another object of the same class
  • Next by Date: Caution Icon
  • Previous by thread: Re: NSTextView and front/middle/back ellipses
  • Next by thread: My objectcontroller is loosing its moc, but only with certain timing
  • Index(es):
    • Date
    • Thread