Re: NSString drawInRect clipping control
Re: NSString drawInRect clipping control
- Subject: Re: NSString drawInRect clipping control
- From: Markus Hitter <email@hidden>
- Date: Wed, 23 Jan 2002 18:59:52 +0100
Am Mittwoch den, 23. Januar 2002, um 18:15, schrieb Mark's Studio:
But i still don't understand why drawInRect is not doing the same thing
when there is a space in the string,
it looks like drawInRect is doing the same thing when it's just
one long
string.
The drawing method most probably tries to do correct line
wrapping. Of course, the second line is out of borders.
IIRC, there is a switch for NSTextView in Interface builder for
"scrollable" or "wraps". The second has the behaviour you
described, the first one cuts the text at the end of the box,
even if there are spaces. "scrollable" is meant for editable
NSTextView's, of course, but you can see the same behaviour for
static texts.
You might want to play a little with this switch to find a
superior solution.
Markus
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/