Re: open Drawer on startup
Re: open Drawer on startup
- Subject: Re: open Drawer on startup
- From: Markus Hitter <email@hidden>
- Date: Sat, 1 Dec 2001 12:44:49 +0100
Am Samstag den, 1. Dezember 2001, um 11:55, schrieb Jake:
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.
You draw your table while the drawer is closed.
-performSelector: will inject a method into the Run Loop to be
executed at a later time. If you need to do more than just
opening the drawer, create a method which does opening including
all drawing. Then use -performSelector: not to inject -open: but
your own method.
hmmm - maybe there is some design issue, too. Calling -display
is quite unusual. Drawing contents should be independant from
opening the drawer. I.e. your drawing code should be called
automatically when the drawer is openend. Like when the drawer's
contents is exposed some other way.
Hope that helps,
Markus
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/