Re: [Pyobjc-dev] NSApplicationMain idiom: wish to standardize
Brought to you by:
ronaldoussoren
From: <bb...@ma...> - 2003-03-21 16:52:36
|
On Friday, Mar 21, 2003, at 11:33 US/Eastern, Ronald Oussoren wrote: > Speaking of NSApplicationMain... Does anyone care to offer on opinion > on the enormous amount of time between the call to NSApplicationMain > and the call to awakeFromNib in a simple application? That period of > time takes about 4 seconds of the 5 seconds my application needs to > start up (using a savagely butchered version of PyObjC, 'import > AppKit' would use another 2 seconds if I hadn't build a mini module > that exports all definitions I need from AppKit and Foundation). How long does it normally take to launch an app of similar complexity on your machine? The period of time between NSApplicationMain() and the first awakeFromNib() is comprised of most of the "hard stuff" of launching an app; setting up the notification stuff, the mach ports, and all the other innards that integrate the App into OS X.... Unless we have a bug somewhere, that period of time shouldn't really be any longer than a 'normal' app as there really isn't anything from PyObjC that is involved (unless your app delegate implements willFinishLaunching())? b.bum |