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 14:05:53 +0100
Am Mittwoch den, 23. Januar 2002, um 10:34, schrieb Mark's Studio:
When i draw a string in a rect and the string
is longer that the width of the rect, it is clipped
after the first space, if the rest of the string don't fit
...
how do i control where its clipped?
Avoid clipping. Precalculate the String's size (see NSGlyph ?)
or increase the size of your Text Field.
If you really want clipping (do you?), subclass NSTextField and
override -drawRect.
Markus
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/