🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fa.think-c
Article #1

GetNextEvent beeps at me instead of returning keyDown

#1
From: Bill Dugan
Date: Sun, 21 Apr 1991 09:24
22 lines
1792 bytes
I'm tearing my hair out over this one.  I'm writing a Think C application 
that uses the stdio functions.  In my event loop, it returns a mouseDown
correctly, and I can drag windows, choose menu items, etc.  But when I
hit a key, it just beeps at me.  GetNextEvent doesn't even take the
"case keyDown"; it just keeps cycling over and over waiting for an event.
I'm calling GetNextEvent(everyEvent,&myEvent) the same way I do in every
other program I've ever written, but this code is a couple of years old
and converted from a Think C 3.0 project.  The code did work under 3.0.
(I've since deleted that project and started a new one just in case it was
a corrupted project file, but no dash, same problem.  I have the same bug,
incidentally, under both System 6.0.7 and 7.0b4.)

Is there some kind of call I might inadvertently have made that will mask
out the keyDown event?  Or perhaps GNE thinks that the stdio window is a
DA window and attempts to take care of the event itself instead of returning
it to me?

Puzzled,

bill
(thanks in advance!)
Technical Details
Message-ID: <28115A68.6279@orion.oac.uci.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!utgpu!news-server.csri.toronto.edu!rpi!uwm.edu!spool.mu.edu!mips!bridge2!jarthur!ucivax!orion.oac.uci.edu!nntpsrv

Show Full Headers
Complete Article Headers
Message-ID: <28115A68.6279@orion.oac.uci.edu>
Subject: GetNextEvent beeps at me instead of returning keyDown
Date: Sun, 21 Apr 1991 09:24:56 +0000
From: bdugan@teri.bio.uci.edu (Bill Dugan)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!utzoo!utgpu!news-server.csri.toronto.edu!rpi!uwm.edu!spool.mu.edu!mips!bridge2!jarthur!ucivax!orion.oac.uci.edu!nntpsrv
Newsgroups: comp.sys.mac.programmer,fa.think-c
Summary: This has got to be a really stupid problem
Organization: University of California, Irvine
Lines: 21
Nntp-Posting-Host: teri.bio.uci.edu