Re: How do I open an NSDrawer in awakeFromNib?
Re: How do I open an NSDrawer in awakeFromNib?
- Subject: Re: How do I open an NSDrawer in awakeFromNib?
- From: "Erik M. Buck" <email@hidden>
- Date: Thu, 7 Feb 2002 17:51:49 -0600
This is a very commonly asked question. Search the archives.
The basic answer is that the drawer can not open if its associated window is
not on screen. The associated window is not yet on screen
during -awakeFromNib: The solution is to
se -performSelector:withObject:afterDelay: with a zero delay to open to
drawer.
----- Original Message -----
From: "Pete Yandell" <email@hidden>
To: <email@hidden>
Sent: Thursday, February 07, 2002 5:17 PM
Subject: How do I open an NSDrawer in awakeFromNib?
>
One would think that:
>
>
- (void)awakeFromNib
>
{
>
[myDrawer open];
>
}
>
>
would do the trick, but the drawer doesn't seem to display if I do
>
this. Indeed, it seems to be left in some sort of weird state: a toggle
>
will not open it, but a second toggle will, as though it thinks it's
>
open but it isn't displayed.
>
>
Anyone know an easy way to solve/work around this one?
>
>
Pete Yandell
>
http://pete.yandell.com/
>
>
>
________________________________________________________________________
>
This email has been scanned for all viruses by the MessageLabs SkyScan
>
service. For more information on a proactive anti-virus service working
>
around the clock, around the globe, visit http://www.messagelabs.com
>
________________________________________________________________________
>
_______________________________________________
>
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.
_______________________________________________
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.