Re: Opening drawer by default
Re: Opening drawer by default
- Subject: Re: Opening drawer by default
- From: Richard Schreyer <email@hidden>
- Date: Fri, 18 Jan 2002 21:45:30 -0800
On 1/18/02 8:28 PM, "Yong Lee" <email@hidden> wrote:
>
I'm trying to have a drawer open by default by sending it "open" method
>
in "windowDidLoad". When I check the state after the "open" message it
>
says the drawer is opening. But nothing happens. Visually it's closed,
>
but the state says it's open. I can toggle it open/close by sending
>
toggle: message from a button. Is "windowDidLoad" the wrong place for
>
this? What am I doing wrong?
>
>
Your help would be much appreciated.
If your class is being instantiated from a nib file, placing the open
message in -awakeFromNib might work better. See the NSBundle documentation
(I think...)
Richard Schreyer