Article View: comp.sys.next.programmer
Article #1290application defined events (was Unlocking Focus on wrong View)
From: alain
Date: Wed, 07 Oct 1992 12:27
Date: Wed, 07 Oct 1992 12:27
23 lines
1560 bytes
1560 bytes
Thanks to burchard@geom.umn.edu for helping me solve my previous problem: I was getting "Unlocking Focus on wrong View" errors when updating Views from a completion routine set by SNDStartRecording(). It seems that the completion routine is executing in another thread from that of the main loop, and that that was the source of the problem. My present problem has to do with communicating from the completion routine to the event loop. I tried posting an application-defined event from the completion routine, and catching it in an applicationDefined: method in the application's delegate. The application-defined event is delivered all right, but only when other events appear (mouse, etc.). Until that happens, it stays queued. I also tried overriding the sendEvent: message in Application, with the same result: no events appear until I click somewhere. The call to DSPPostEvent() specifies that the event should go before all others (second parameter == 1). What am I doing wrong? Alain de Cheveigne, alain@linguist.jussieu.fr
Technical Details
Message-ID:
<alain-071092130436@besouro.linguist.jussieu.fr>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!corton!jussieu!besouro.linguist.jussieu.fr!userShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!corton!jussieu!besouro.linguist.jussieu.fr!user From: alain@linguist.jussieu.fr Newsgroups: comp.sys.next.programmer Subject: application defined events (was Unlocking Focus on wrong View) Message-ID: <alain-071092130436@besouro.linguist.jussieu.fr> Date: 7 Oct 92 12:27:36 GMT Sender: news@jussieu.fr (Le Facteur) Followup-To: comp.sys.next.programmer Organization: Universite Paris VI/Paris VII Lines: 23 Nntp-Posting-Host: besouro.linguist.jussieu.fr