• 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: boundingRectWithSize:Option: and height constraint
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: boundingRectWithSize:Option: and height constraint


  • Subject: Re: boundingRectWithSize:Option: and height constraint
  • From: Bill Cheeseman <email@hidden>
  • Date: Wed, 11 Nov 2009 12:28:37 -0500

On Nov 11, 2009, at 11:48 AM, Matt Neuburg wrote:

> On Wed, 11 Nov 2009 08:53:37 -0500, Bill Cheeseman <email@hidden>
> said:
>> The documentation leaves me with the impression that the whole point of this
> method is to return the largest rect that will honor the size constraint by
> cutting off the text at the height constraint while it is being laid out within
> the width constraint. Have I misunderstood?
>
> More like wishful thinking? I don't see anything in the documentation that
> would give you that impression.
>
> Perhaps the problem here is just a wish to avoid using the text system? It
> really is not at all difficult. The text system will lay out text for you in
> a container of a given size (if you don't want to use a view that already
> does this for you). See "Text System Overview," "Text Layout Programming
> Guide," etc.

I know how to use the text system. That wasn't my question.

What I'm trying to do is figure out how -boundingRectWithSize:option: works and what it's good for. If it did what I understood from the documentation, it could make some things easier. But you seem to be right: it was wishful thinking.


--

Bill Cheeseman
email@hidden

_______________________________________________

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: boundingRectWithSize:Option: and height constraint
      • From: Shawn Erickson <email@hidden>
References: 
 >Re: boundingRectWithSize:Option: and height constraint (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: boundingRectWithSize:Option: and height constraint
  • Next by Date: Re: Implicit @try/@catch?
  • Previous by thread: Re: boundingRectWithSize:Option: and height constraint
  • Next by thread: Re: boundingRectWithSize:Option: and height constraint
  • Index(es):
    • Date
    • Thread