On 2010 Sep 15, at 18:58, Kyle Sluder wrote:

> There's no runloop running yet when -applicationWillFinishLaunching:
> is called…

Thank you, Kyle. Good explanation.

> Among other things, AppKit's automatically-installed autorelease pool hasn't
> been installed yet,

> Then NSRunAlertPanel is going to run the app in a modal mode before
> the app has finished setting itself up. I'm not surprised that doesn't
> work.

Actually, the NSRunAlertPanel works fine.  But it sets things up for the modal 
window to crash it later.  I'd say that it kind of hijacks the main run loop.

> What is there that you can't do in -applicationDidFinishLaunching:?

Anything that I want to happen before a document opens, in case the app is 
launched by doubleclicking a document.

SO…

Is it correct to say that one should not do "GUI Things" or "AppKit Stuff" in 
-applicationWillFinishLaunching: ?

If someone could please state that more concisely I'd like to file some 
document feedback requesting that this restriction be stated in the 
documentation of -applicationWillFinishLaunching:.

Thanks,

Jerry

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to