Re: Cocoa equivalent to HIViewGetOptimalBounds?
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