• 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
Drawing an NSAttributedString into an NSRect
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Drawing an NSAttributedString into an NSRect


  • Subject: Drawing an NSAttributedString into an NSRect
  • From: Graham <email@hidden>
  • Date: Tue, 30 May 2006 17:26:18 -0400

In my custom cell's drawing method, I am drawing an NSAttributedString into a rectangle because I need it to wrap the text based upon a limiting cell width.
What I need to know is, given the width of the rectangle, how many lines and thus how many pixels deep is the rectangle that it actually draws into after wrapping?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Follow-Ups:
    • Re: Drawing an NSAttributedString into an NSRect
      • From: Ricky Sharp <email@hidden>
    • Re: Drawing an NSAttributedString into an NSRect
      • From: Joshua Scott Emmons <email@hidden>
    • Re: Drawing an NSAttributedString into an NSRect
      • From: Mike Blaguszewski <email@hidden>
  • Prev by Date: Re: NSError naming convention?
  • Next by Date: libsqlite3 and cross-development
  • Previous by thread: Re: NSText/NSAttributedString alignLeft: and rtf
  • Next by thread: Re: Drawing an NSAttributedString into an NSRect
  • Index(es):
    • Date
    • Thread