Frame/layout rect
Frame/layout rect
- Subject: Frame/layout rect
- From: Jo Meder <email@hidden>
- Date: Mon, 25 Jan 2010 18:24:33 +1300
Hi,
I'm pretty sure I know the answer to this one already, but is anyone aware of a way to get/set the layout rect for a view? Or get a frame rect from a layout rect, that sort of thing? This is the same layout rect we see in IB, which I understand is only available in IB but which I'm hoping is somehow available at runtime as well.
The reason I'm asking about this is that the Cocoa way of using the frame rect to get and set view bounds makes it very hard to lay out a UI outside of IB, particularly for things like push buttons where the padding below the actual button is much more than padding at the top.
Seems like Carbon sets the equivalent of the layout rect while Cocoa uses the frame rect.
Regards,
Jo Meder_______________________________________________
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