• 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
Drawing text with '...' if it does not fit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Drawing text with '...' if it does not fit


  • Subject: Drawing text with '...' if it does not fit
  • From: "David Brennan" <email@hidden>
  • Date: Tue, 2 Jan 2007 10:22:26 +0000

Hi,

I am trying to draw a piece of text in a NSRect. If the text is too
long I don't want the text to wrap, I would like it to be truncated
and follewed by '...' so if the text is

"a very long name", I want
"a very lo..."

How do I do this.

Thanks,
Dave.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


  • Follow-Ups:
    • Re: Drawing text with '...' if it does not fit
      • From: Nir Soffer <email@hidden>
  • Prev by Date: Re: New to Cocoa, needs help understanding various topics (delegates, connections in Interface Builder, ect...)
  • Next by Date: Re: Drawing text with '...' if it does not fit
  • Previous by thread: Re: New to Cocoa, needs help understanding various topics (delegates, connections in Interface Builder, ect...)
  • Next by thread: Re: Drawing text with '...' if it does not fit
  • Index(es):
    • Date
    • Thread