• 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
NSLineBreakMode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSLineBreakMode


  • Subject: NSLineBreakMode
  • From: Angela Brett <email@hidden>
  • Date: Thu, 27 Sep 2001 21:10:08 +1200

Hi,

I'm using NSString's drawInRect method to draw some strings, with an NSMutableParagraphStyle. I'd like the string to be cut off at the width of the rect and not wrap to the next line. From the docs:

NSLineBreakByClipping
As much of the paragraph appears as will fit on a single line. This
value has the same effect as NSLineBreakByTruncatingTail

NSLineBreakByTruncatingTail
As much of the paragraph appears as will fit on a single line.
Characters from the end of the paragraph do not appear.

However, they both show the rest of the string on the next line, just like NSLineBreakByCharWrapping - At the last possible character, the paragraph wraps to the next line. Is this a bug? If so, is it fixed in 10.1?
--
Angela Brett email@hidden http://acronyms.co.nz/
"Great minds think different."


  • Prev by Date: Re: Keyboard buffer overrun
  • Next by Date: Re: timeIntervalSinceDate ????
  • Previous by thread: Re: How can I change IP address in the program?
  • Next by thread: Delegation question
  • Index(es):
    • Date
    • Thread