Re: Document not opened at launch? -- [SOLVED]
Re: Document not opened at launch? -- [SOLVED]
- Subject: Re: Document not opened at launch? -- [SOLVED]
- From: Mark Dawson <email@hidden>
- Date: Wed, 26 Jul 2006 14:45:07 -0700
>I tracked down what was causing the issue (not sure what's behind it, though)--before I called NSApplicationMain, I check for a condition, and (if true) put up a dialog. In the release version of the program, I would quit after that dialog, but right now I was allowing execution to proceed. Apparently that dialog (using StandardAlert, since Cocoa's windowing system isn't up yet) was mucking with the event system, "stealing" the open event. Removing that dialog gets my "open" event.
>
>Does anyone know why the StandardAlert would "steal" the open event?
>
As an FYI: I received this info off list:
StandardAlert just runs a normal event loop, processing each event in turn and then discarding it. This includes the 'open' AppleEvent. Since no handlers are installed for it yet, the event is dispatched, not handled, removed from the queue, and it's gone.
_______________________________________________
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