• 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: where does cocoa start up a program?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: where does cocoa start up a program? (From: Scott Ribe <email@hidden>)

  • Prev by Date: Re: Importing data with core-data
  • Next by Date: Problem with IB not control-dragging to make connections
  • Previous by thread: Re: where does cocoa start up a program?
  • Next by thread: What all is Cocoa used for?
  • Index(es):
    • Date
    • Thread