Re: NSDrawer absolute sizing in IB
Re: NSDrawer absolute sizing in IB
- Subject: Re: NSDrawer absolute sizing in IB
- From: Andrew Mortensen <email@hidden>
- Date: Fri, 1 Feb 2002 23:39:31 -0500 (EST)
[ myDrawer setContentSize: NSMakeSize( x, y ) ];
There's a bug in the IB implementation of NSDrawer. The sizes you
stipulate are forgotten. You have to do it in code. I generally call the
above line in awakeFromNib, but there's nothing stopping you from resizing
it almost anywhere else, should you feel the need to resize the drawer
again.
andrew
On Sat, 2 Feb 2002, Allan Odgaard wrote:
>
Hi again,
>
>
Is there any way to set a fixed size for a drawer in IB? I have tried to
>
set both the min and max height, but they have no effect on the
>
calculated size -- if I have to set the sie programmatically, must I
>
then also instantiate the drawer myself, to avoid IB's nib-logic from
>
resizing the drawer when e.g. the parent window is resized?
>
_______________________________________________
>
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.