Re: What is called AFTER awakeFromNib?
Re: What is called AFTER awakeFromNib?
- Subject: Re: What is called AFTER awakeFromNib?
- From: "M. Uli Kusterer" <email@hidden>
- Date: Wed, 14 Apr 2004 18:20:27 +0200
At 22:21 Uhr -0700 08.04.2004, John Stiles wrote:
Just an idea, but what if you set an NSTimer in your awakeFromNib?
Even if you gave it an infinitesimally small delay, I don't think it
would fire until the event loop was up and running, which to me
would imply that the window was visible and the dock-bouncing had
finished.
Or he might create a separate NSThread. After all, at the end of
awakeFromNib, the window is already set up, except for the data from
the net. So, there'd be no harm in having the code to load the stuff
run concurrently with whatever else goes on at startup. No need to
delay it until the event loop has been kicked off.
He'll have to be careful not to access the GUI from the second thread
(performSelectorOnMainThread: is your friend), but apart from that it
would probably work quite nicely.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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.