• 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: string bounding rect methods
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: string bounding rect methods


  • Subject: Re: string bounding rect methods
  • From: "James W. Walker" <email@hidden>
  • Date: Sat, 17 Jan 2009 16:22:58 -0800


On Jan 16, 2009, at 8:12 PM, Aki Inoue wrote:

Yes, rendering and measuring methods behave the same.

Please file a doc enhancement request.

Thanks for confirming my guess. I used the documentation feedback form.


On 2009/01/16, at 19:11, James Walker wrote:

The documentation for -[NSString boundingRectWithSize:options:attributes:] simply describes the size parameter as "the size of the rectangle to draw in". However, the documentation for the related drawing method, -[NSString drawWithRect:options:attributes:] says that you can specify 0.0 for the width or height to indicate that the text is not limited in that dimension. It would seem reasonable for the measurement function to work the same way... is this just a flaw in the documentation?

The same question applies to the NSAttributedString drawing/ measuring methods.

_______________________________________________

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: 
 >string bounding rect methods (From: James Walker <email@hidden>)
 >Re: string bounding rect methods (From: Aki Inoue <email@hidden>)

  • Prev by Date: Re: ObjC in time-critical parts of the code
  • Next by Date: Re: ImageAndTextCell rendering weirdness
  • Previous by thread: Re: string bounding rect methods
  • Next by thread: Function for Retrieving icon from bundle's.
  • Index(es):
    • Date
    • Thread