Re: NSDrawer question
Re: NSDrawer question
- Subject: Re: NSDrawer question
- From: Drew McCormack <email@hidden>
- Date: Sat, 16 Mar 2002 10:18:28 +0100
I think I may have had similar problems with NSDrawer recently.
What I found was that if I had a draw open, and I closed the window, and
then redisplayed it, the drawer didn't display properly. It was just a
big white square.
The way I got things to work, and this may not be the best way, was to
add code to open the drawer in "windowDidBecomeKey:", which is a
delegate method that receives a notification (you could also register
for the notification).
I think the important thing is to close the drawer when your window
closes, and explicitly open it when it gets displayed. You will probably
need an ivar or two to keep track of the drawer state and when it should
be open and closed.
Drew
On Saturday, March 16, 2002, at 02:51 AM, Joseph Jones wrote:
How do I get a drawer to be visible when the window first appears? I
see Mail.app do this, but I can't seem to figure out what notification
to hook so I can send the toggle message to the drawer. If I do this in
windowDidLoad, all that happens is toggle is set and you have to toggle
it twice to actually get it to become visible.
Thanx,
joe
_______________________________________________
MacOSX-dev mailing list
email@hidden
http://www.omnigroup.com/mailman/listinfo/macosx-dev
... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
... ... ... ... ... ... ... ...
Dr. Drew McCormack
Trade Strategist (www.trade-strategist.com)
Trading simulation software for Mac OS X
_______________________________________________
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.