home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!gatech!darwin.sura.net!haven.umd.edu!ni.umd.edu!zben-mac-ii.umd.edu!user
- From: zben@ni.umd.edu (Charles B. Cranston)
- Subject: Re: Event Loop
- Message-ID: <zben-030992144708@zben-mac-ii.umd.edu>
- Followup-To: comp.sys.mac.programmer
- Sender: usenet@ni.umd.edu (USENET News System)
- Nntp-Posting-Host: zben-mac-ii.umd.edu
- Organization: UM Home for the Terminally Analytical
- References: <1992Sep1.152720.12544@nic.umass.edu> <1992Sep3.174732.9231@cs.wisc.edu>
- Date: Thu, 3 Sep 1992 18:54:19 GMT
- Lines: 35
-
- In article <1992Sep3.174732.9231@cs.wisc.edu>,
- andrewt@scrooge.cs.wisc.edu (Andrew Thomas-cramer) wrote:
-
- > isEvent is always 0, fortunately -- but it is not FALSE. GetNextEvent
- > returns zero (noErr) unless an error occurs. You're confusing noErr
- > with FALSE, both of which are equal to zero.
-
- Sigh - wrong. More dangerous misinformation. It only took me 45
- seconds to pull my Inside Mac off the shelf and find GetNextEvent.
- You'd think someone would do that before sending a netnews message
- to tens of thousands of people on thousands of computers...
-
- Ahem:
-
- "Before reporting an event to your application, GetNextEvent first
- calls the Desk Manager function SystemEvent to see whether the system
- wants to intercept and respond to the event. If so, or if the event
- being reported is a null event, GetNextEvent returns a function result
- of FALSE; a function result of TRUE means that your application should
- handle the event itself."
-
- Now, the Desk Manager clause is not as important as it once was.
- Since DAs are run in their own layers in system 7 and in a unified
- DA layer in system 6 with multifinder, the only time this can make
- a difference is on system 6 without multifinder, or system 6 with
- multifinder and a DA loaded into the application's heap using the
- option key while opening the DA.
-
- Modulo this, the result from GetNextEvent is FALSE if a null event
- is being reported and TRUE if a real event is being returned. It
- is NOT an error code...
-
- And this is what I put in my private email to the original poster.
-
- zben@ni.umd.edu -KA3ZDF
-