FROM : Mark Dawson
DATE : Wed Jul 26 23:45:07 2006
>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.
DATE : Wed Jul 26 23:45:07 2006
>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.
| Related mails | Author | Date |
|---|---|---|
| Mark Dawson | Jul 26, 03:32 | |
| Daniel Jalkut | Jul 26, 18:18 | |
| Daniel Jalkut | Jul 26, 18:23 | |
| Mark Dawson | Jul 26, 19:36 | |
| Mark Dawson | Jul 26, 19:53 | |
| Mark Dawson | Jul 26, 20:45 | |
| Mark Dawson | Jul 26, 23:45 |






Cocoa mail archive

