Re: where does cocoa start up a program?
Re: where does cocoa start up a program?
- Subject: Re: where does cocoa start up a program?
- From: Scott Stevenson <email@hidden>
- Date: Sat, 4 Nov 2006 19:50:15 -0800
On Nov 4, 2006, at 8:50 AM, Scott Ribe wrote:
While it doesn't really hurt to put something in main.m (or main.mm
if you
have C++ code), it's often the case that the data you want to
initialize is
sufficiently related to the app startup process that it's better to
put it
in one of those app delegates
I think it's not such a hot idea to put this sort of thing in main
because it could mean the app icon just sit and bounces there for a
while while the extra processing is done. The user is left thinking
"what in the world is going on here?"
Better to get the UI up first, give control to NSApplication, and
then display a spinner or something if you need to do some
initialization.
- Scott
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden