• 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: Douglas Davidson <email@hidden>
  • Date: Wed, 23 Jan 2002 10:01:33 -0800

On Wednesday, January 23, 2002, at 01:34 AM, Mark's Studio wrote:

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

Try setting an NSParagraphStyle, with the line break mode NSLineBreakByClipping, for the NSParagraphStyleAttributeName.

Douglas Davidson


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

  • Prev by Date: Re: Faster way to draw strings?
  • Next by Date: Re: NSString drawInRect clipping control
  • Previous by thread: Re: NSString drawInRect clipping control
  • Next by thread: Re: NSString drawInRect clipping control sorted
  • Index(es):
    • Date
    • Thread