Re: Frame/layout rect
Re: Frame/layout rect
- Subject: Re: Frame/layout rect
- From: Kyle Sluder <email@hidden>
- Date: Sun, 24 Jan 2010 21:57:44 -0800
On Sun, Jan 24, 2010 at 9:24 PM, Jo Meder <email@hidden> wrote:
> 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.
There's no guarantee that the methods that provide the layout
information will be available outside of the IB plugin. Someone could
theoretically only provide them in a category which lives in the
plugin bundle.
> 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.
It's difficult because you're supposed to lay it out in IB. Is there a
specific reason you wish not to?
--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