• 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
Re: NSString drawInRect clipping control
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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/


References: 
 >Re: NSString drawInRect clipping control (From: "Mark's Studio" <email@hidden>)

  • Prev by Date: Re: NSString drawInRect clipping control
  • Next by Date: Re: Calling BSD from Cocoa and/or CFM?
  • Previous by thread: Re: NSString drawInRect clipping control
  • Next by thread: Re: NSString drawInRect clipping control
  • Index(es):
    • Date
    • Thread