Re: NSDrawer, IB "springs", etc.
Re: NSDrawer, IB "springs", etc.
- Subject: Re: NSDrawer, IB "springs", etc.
- From: Roarke Lynch <email@hidden>
- Date: Fri, 23 Aug 2002 08:49:14 -0400
On Thursday, August 22, 2002, at 04:34 PM, Keith Renz wrote:
I have tried every combination of IB's springs for the view, tables and
buttons to get the behavior I want. I thought I understood what they
mean,
but I guess I don't.
Can someone please give me a definitive explanation of the springs and
what I
need to do to pin my drawer's contents to the drawer?
Thanks,
Keith
In the IB size interface you have six springs. The four on the
outside of the object which represent the object's position relative to
the view in which it has been placed. You then have the two springs on
the inside of the object which represent the objects size relative to
the size of the view in which it has been placed. So if you do not want
your objects to resize, do not unlock the two internal springs. Likewise
if you do not want your objects to move (and you do allow for resizing
of the drawer/window/panel/etc...) you have a little bit of a problem
with using a drawer. Say your drawer prefers to open on the left side of
your window, then you should lock the objects within that drawer to the
top and left side of the view, and spring to the bottom and right. But
if your window was pushed all the way to the left on the screen when the
drawer is opened, it will open on the right side of the window, meaning
that now, when the drawer is resized, the objects will move to retain
their distance to the left edge of the view.
Roarke Lynch
-------------------------------
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.