Re: Setting the size of a drawer
Re: Setting the size of a drawer
- Subject: Re: Setting the size of a drawer
- From: Mark T <email@hidden>
- Date: Sun, 8 Jul 2001 18:07:53 -0400
Hi,
How do you set the size( the width ) of a drawer ? It doesn't seem to
depend
upon the size of the content view, and it doesn't seem there are any
methods
that does anything similar in NSDrawer.
Thanks
- (void)setContentSize:(NSSize)size
There should be a way to do this in Interface Builder, but at least in
mine, those fields are grayed out and disabled(NSDrawer Info, size tab,
Content Size fields). So I just put this method in my awakeFromNib:
[theDrawer setContentSize:NSMakeSize(width,height)];
and it works great
Hope that helps you,Mark T.