• 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: Very Simple Demo: Modal Dialog causes later Modal Session to Crash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Very Simple Demo: Modal Dialog causes later Modal Session to Crash


  • Subject: Re: Very Simple Demo: Modal Dialog causes later Modal Session to Crash
  • From: Jerry Krinock <email@hidden>
  • Date: Wed, 15 Sep 2010 19:11:38 -0700

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 (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Very Simple Demo: Modal Dialog causes later Modal Session to Crash
      • From: Kyle Sluder <email@hidden>
References: 
 >Very Simple Demo: Modal Dialog causes later Modal Session to Crash (From: Jerry Krinock <email@hidden>)
 >Re: Very Simple Demo: Modal Dialog causes later Modal Session to Crash (From: Kyle Sluder <email@hidden>)

  • Prev by Date: keyDown:theEvent
  • Next by Date: Re: keyDown:theEvent
  • Previous by thread: Re: Very Simple Demo: Modal Dialog causes later Modal Session to Crash
  • Next by thread: Re: Very Simple Demo: Modal Dialog causes later Modal Session to Crash
  • Index(es):
    • Date
    • Thread