Re: What is called AFTER awakeFromNib?
Re: What is called AFTER awakeFromNib?
- Subject: Re: What is called AFTER awakeFromNib?
- From: John Stiles <email@hidden>
- Date: Thu, 8 Apr 2004 22:21:57 -0700
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.
On Apr 8, 2004, at 7:08 PM, Michael Becker wrote:
Hi!
My application needs to load some data from a remote server at
startup. If I place the code which does this in the awakeFromNib
method, the window is not displayed and the icon bounces in the dock
while the load takes place. This is the expected behaviour.
I'd obviously like it better if the window would be already on the
screen when the load takes place. But as several objects in my GUI are
set up depending on the loaded data, I need to perform the load
automatically (as opposed to having the user hit an "update" button).
So my question: Is there a method that is called AFTER the window has
been loaded and displayed? I know about NSWindowController's
windowDidLoad, but I am not sure about WHO my WindowController is....
probably not the File's Owner, right?
(My application is basically a non-document-based one-window
application)
Bye,
Michael
_______________________________________________
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.