• 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: NSAttributesString -size is often very innaccurate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSAttributesString -size is often very innaccurate


  • Subject: Re: NSAttributesString -size is often very innaccurate
  • From: Nick Zitzmann <email@hidden>
  • Date: Fri, 30 Jan 2009 00:02:24 -0700


On Jan 29, 2009, at 11:46 PM, Graham Cox wrote:

I should mention I'm just drawing isolated attributed strings using - drawAtPoint here, not long runs of laid-out text.

Anyone figured this out?


I've always just used NSLayoutManager to calculate the size of attributed text, which works fine for me as long as the typesetter behavior is set to NSTypesetterBehavior_10_2_WithCompatibility.

Nick Zitzmann
<http://www.chronosnet.com/>



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >NSAttributesString -size is often very innaccurate (From: Graham Cox <email@hidden>)

  • Prev by Date: re: Formatting Core Data Conflict List
  • Next by Date: Re: Interface Builder Plugin Dependency
  • Previous by thread: NSAttributesString -size is often very innaccurate
  • Next by thread: Re: NSAttributesString -size is often very innaccurate
  • Index(es):
    • Date
    • Thread