• 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: Cocoa equivalent to HIViewGetOptimalBounds?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa equivalent to HIViewGetOptimalBounds?


  • Subject: Re: Cocoa equivalent to HIViewGetOptimalBounds?
  • From: Kyle Sluder <email@hidden>
  • Date: Tue, 19 Jan 2010 08:34:12 -0800

On Jan 18, 2010, at 6:48 PM, Jo Meder <email@hidden> wrote:

Is there a Cocoa equivalent to HIViewGetOptimalBounds()? That function would return the optimal bounds for an HIView and I found it very useful.

Not entirely. -sizeToFit and other NSCell methods will get you bounds information, but not baseline info. In most cases you should not be algorithmically generating your UI anyway. Is there a reason you can't just set up your control in IB?


--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: Cocoa equivalent to HIViewGetOptimalBounds?
      • From: Jo Meder <email@hidden>
References: 
 >Cocoa equivalent to HIViewGetOptimalBounds? (From: Jo Meder <email@hidden>)

  • Prev by Date: Re: My Cocoa App is crashing randomly.
  • Next by Date: Re: My Cocoa App is crashing randomly.
  • Previous by thread: Cocoa equivalent to HIViewGetOptimalBounds?
  • Next by thread: Re: Cocoa equivalent to HIViewGetOptimalBounds?
  • Index(es):
    • Date
    • Thread