Preopen a drawer
Preopen a drawer
- Subject: Preopen a drawer
- From: "Mathieu Routhier" <email@hidden>
- Date: Tue, 29 Jan 2002 15:08:41 -0500
Hi,
I have a drawer attached to a window. I would like this drawer to be
opened when the window shows up. So I have implemented awakeFromNib and
called [drawer open] but the drawer does not appear.
I have added a test button that calls [drawer toggle:self]. It works
but it looks like there is a problem with the drawer state. The first
time I press the button, it does nothing. The internal state of the
drawer must be set to 'open' prior to toggle (because I have called open
in awakeFromNib) so the drawer gets closed. The second time I press the
button, the drawer comes out.
Anyway, my question is "How can I have my drawer open at startup?"
Mathieu Routhier