• 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: NSAttributedString boundingRectWithSize vs. paragraph margins
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSAttributedString boundingRectWithSize vs. paragraph margins


  • Subject: Re: NSAttributedString boundingRectWithSize vs. paragraph margins
  • From: Kyle Sluder <email@hidden>
  • Date: Wed, 23 Jan 2013 23:01:58 -0800

On Jan 23, 2013, at 8:17 PM, Matt Neuburg <email@hidden> wrote:

> It may be that the height is right despite the narrowed width, but since the narrowed width is unexpected, it would be nice to be assured of this. m.

Why is the narrowed width unexpected? You told the text system to use 20pt margins on each side of a 100pt text container.

If you're not sure that the value is correct, fill the rect with a color and then draw the text atop it. That'll quickly tell you whether they match up.

--Kyle Sluder
_______________________________________________

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

  • Follow-Ups:
    • Re: NSAttributedString boundingRectWithSize vs. paragraph margins
      • From: Matt Neuburg <email@hidden>
    • Re: NSAttributedString boundingRectWithSize vs. paragraph margins
      • From: Matt Neuburg <email@hidden>
References: 
 >NSAttributedString boundingRectWithSize vs. paragraph margins (From: Matt Neuburg <email@hidden>)
 >Re: NSAttributedString boundingRectWithSize vs. paragraph margins (From: Keary Suska <email@hidden>)
 >Re: NSAttributedString boundingRectWithSize vs. paragraph margins (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: can update the UI from sheetDidEnd:…. ?
  • Next by Date: Re: Multithreading crash in -[NSConditionLock unlockWithCondition:]
  • Previous by thread: Re: NSAttributedString boundingRectWithSize vs. paragraph margins
  • Next by thread: Re: NSAttributedString boundingRectWithSize vs. paragraph margins
  • Index(es):
    • Date
    • Thread