• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSDrawer question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
References: 
 >NSDrawer question (From: Joseph Jones <email@hidden>)

  • Prev by Date: Re: NSDictionary Palette available -- addendum
  • Next by Date: Re: NSGraphicsContext from a CGContextRef
  • Previous by thread: NSDrawer question
  • Next by thread: SOLVED: Workaround to force painting of NSSplitView's
  • Index(es):
    • Date
    • Thread