• 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: open Drawer on startup
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: open Drawer on startup


  • Subject: Re: open Drawer on startup
  • From: Jake <email@hidden>
  • Date: Sat, 1 Dec 2001 05:55:13 -0500 (EST)

Donald:

Thanks for the tip. I have a table in the drawer. While this did open the
drawer. The table however won't update until it is actually clicked.

I have tried

[[myDrawer contentView] display]
and
[myTable reloadData]

both before and after the performSelector still with a whitebox.

Thanks. Jake


> Saw this on the list recently. For some reason (I think because, while your
> window has loaded, the drawer hasn't yet), you have to delay briefly. This
> can be done by:
>
> [myDrawer performSelector:@selector(open:) withObject:nil afterDelay:0.0];
>
> Donald
>
> on 12/1/01 4:03 AM, Jake at email@hidden wrote:
>
> > okay, now I am trying to open keep the drawer open as default once the
> > window becomes loaded. so in my window controller i did:
> >
> > - (void)windowDidLoad
> > {
> > NSLog("before @%d", [myDrawer state]);
> > [myDrawer open];
> > NSLog("after @%d", [myDrawer state]);
> > [[self window] update];
> > }
> >
> > while the program gracefully returned
> >
> > before 0
> > after 1
> >
> > the drawer doesn't appear. I installed a toggle button for the same
> > drawer, and from it's behavior, first click yields nothing, second click
> > opens drawer, it appears that the drawer is indeed "open". so what am i
> > missing here?
> >
> > Thanks. Jake
> > _______________________________________________
> > cocoa-dev mailing list
> > email@hidden
> > http://www.lists.apple.com/mailman/listinfo/cocoa-dev


  • Follow-Ups:
    • Re: open Drawer on startup
      • From: Markus Hitter <email@hidden>
References: 
 >Re: open Drawer on startup (From: Donald Brown <email@hidden>)

  • Prev by Date: Re: horizontal tabs in TabView
  • Next by Date: Re: open Drawer on startup
  • Previous by thread: Re: open Drawer on startup
  • Next by thread: Re: open Drawer on startup
  • Index(es):
    • Date
    • Thread