Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!uwvax!rang
From: rang@cs.wisc.edu (Anton Rang)
Newsgroups: comp.sys.mac.programmer
Subject: Re: A BUG (sort of) in the FINDER (event mask jiggery-pokery)
Message-ID: 
Date: 25 Sep 89 14:10:09 GMT
References: <1567@eagle.wesleyan.edu>
Sender: news@spool.cs.wisc.edu
Organization: UW-Madison CS department
Lines: 17
In-reply-to: rcook@eagle.wesleyan.edu's message of 24 Sep 89 19:18:53 GMT

In article <1567@eagle.wesleyan.edu> rcook@eagle.wesleyan.edu writes:
>After some investigation, I discovered that my program sets the system event
>mask to disable the posting of MouseUp events, and the Finder needs MouseUps to
>process a double click.

  This is actually documented somewhere--if you change the event mask,
you must restore it after you exit.  (This changed sometime after
system 3.2, I believe.)  Also, setting the event mask is discouraged.
  I think this is related to changes in the way PostEvent and friends
work under MultiFinder.
   
+----------------------------------+------------------+
| Anton Rang (grad student)        | rang@cs.wisc.edu |
| University of Wisconsin--Madison |                  |
+----------------------------------+------------------+

"You are in a twisty little maze of Unix versions, all different."