• 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: How do I open an NSDrawer in awakeFromNib?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: How do I open an NSDrawer in awakeFromNib?
      • From: Thilo Ettelt <email@hidden>
References: 
 >How do I open an NSDrawer in awakeFromNib? (From: Pete Yandell <email@hidden>)

  • Prev by Date: Re: newbie question on 'Cocoa Programming for Mac OS X'
  • Next by Date: Offscreen drawing again ...
  • Previous by thread: How do I open an NSDrawer in awakeFromNib?
  • Next by thread: Re: How do I open an NSDrawer in awakeFromNib?
  • Index(es):
    • Date
    • Thread