• 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 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/


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

  • Prev by Date: Re: Touch conditionally
  • Next by Date: Re: NSString drawInRect clipping control
  • Previous by thread: NSString drawInRect clipping control
  • Next by thread: Re: NSString drawInRect clipping control
  • Index(es):
    • Date
    • Thread