On Jan 18, 2010, at 6:48 PM, Jo Meder <jome...@ihug.co.nz> 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to