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

Re: Drawing an NSAttributedString into an NSRect


  • Subject: Re: Drawing an NSAttributedString into an NSRect
  • From: Mike Blaguszewski <email@hidden>
  • Date: Tue, 30 May 2006 18:47:47 -0400

On May 30, 2006, at 5:26 PM, Graham wrote:

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?

Sounds like this is what you're after:
<http://developer.apple.com/documentation/Cocoa/Conceptual/TextLayout/ Tasks/StringHeight.html>


--
Mike Blaguszewski / Cocoa Hacker / Ambrosia Software, Inc.



_______________________________________________
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


References: 
 >Drawing an NSAttributedString into an NSRect (From: Graham <email@hidden>)

  • Prev by Date: Re: NSText/NSAttributedString alignLeft: and rtf
  • Next by Date: Re: Accessing System default sounds
  • Previous by thread: Drawing an NSAttributedString into an NSRect
  • Next by thread: Re: Drawing an NSAttributedString into an NSRect
  • Index(es):
    • Date
    • Thread