• 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: Height of an NSAttributedString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Height of an NSAttributedString


  • Subject: Re: Height of an NSAttributedString
  • From: Douglas Davidson <email@hidden>
  • Date: Wed, 21 Dec 2005 09:34:48 -0800

You should now be able to use -[NSString boundingRectWithSize:options:attributes:] or -[NSAttributedString boundingRectWithSize:options:]. Alternatively, you can certainly use a text view to do the measuring for you, or for the most control, set up a text storage, text container, and layout manager yourself.

I'm not sure exactly what you mean when you say that you are not getting accurate results; perhaps you could produce and post a simple example, showing the results you expect and the results you actually see.

Douglas Davidson

_______________________________________________
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: Height of an NSAttributedString
      • From: Philip Dow <email@hidden>
    • Re: Height of an NSAttributedString
      • From: Philip Dow <email@hidden>
References: 
 >Height of an NSAttributedString (From: Philip Dow <email@hidden>)

  • Prev by Date: Opening NIB with missing classes?
  • Next by Date: Re: Cocoa multithreading in C (terrible idea, isn't it?)
  • Previous by thread: Re: Height of an NSAttributedString
  • Next by thread: Re: Height of an NSAttributedString
  • Index(es):
    • Date
    • Thread