NSLineBreakMode
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."