Re: Opening drawer by default
Re: Opening drawer by default
- Subject: Re: Opening drawer by default
- From: Thomas Lachand-Robert <email@hidden>
- Date: Sat, 19 Jan 2002 17:46:20 +0100
Le samedi 19 janvier 2002, ` 04:55 , Yong Lee a icrit :
I tried opening in "awakeFromNib", but the affect is the same.
"awakeFromNib" seems to be called before "windowDidLoad". Its internal
state still thinks it's open when it's not. Any other suggestions? Thanks
for your replay, Richard.
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?
I remember I got this problem some times ago. If I remember well, the
drawer did not open at the moment, because its 'window' outlet was still
ot connected in the awakeFromNib method. So I suggest you check that, and
that the parent window is actually visible, using the debugger or a NSLog.
If that doesn't work, try to use performSelector:afterDelay to open the
drawer after 0.1 second for instance.
Thomas Lachand-Robert
********************** email@hidden
<< Et le chemin est long du projet ` la chose. >> Molihre, Tartuffe.