Xref: utzoo comp.sys.mac.programmer:4120 comp.sys.mac:25662 Path: utzoo!attcan!uunet!lll-winken!ames!ncar!mailrus!caen.engin.umich.edu!sol.engin.umich.edu!billkatt From: billkatt@sol.engin.umich.edu (Steve Bollinger) Newsgroups: comp.sys.mac.programmer,comp.sys.mac Subject: Re: A plea for help (double-clicking disabled in Finder...) Message-ID: <40fa87bd.a590@mag.engin.umich.edu> Date: 20 Jan 89 15:05:00 GMT References: <6977@june.cs.washington.edu> <379@lclark.UUCP> Sender: netnews@caen.engin.umich.edu Reply-To: billkatt@caen.engin.umich.edu (Steve Bollinger) Organization: Computer Aided Engineering Network (CAEN), University of Michigan Lines: 26 Sender: Followup-To: In article <379@lclark.UUCP> dan@lclark.UUCP (Dan Revel) writes: >In article <6977@june.cs.washington.edu> marty@june.cs.washington.edu (Marty Sirkin) writes: >>I wrote [a] program ... on a Mac [II], and it worked ... fine. [But] it [has] >>a problem running on other machines [SEs, +s]. The program runs ... great. >>When I leave it, however, double cliking for ALL other programs is disabled. >>Single clicking and menu clicks (also single) work just great. >> Thanks, >> Marty Sirkin > You are setting the event mask to mask mouse-up events. The reason that "it works on a Mac II" is probably because you ran it under Multifinder on the II, and Multifinder resets the event mask when your program ends. Put this at the end of your program to fix the problem: SetEventMask(everyEvent-MouseUpMask) or better yet, don't set the mask on entry. +----------------------+----------------------------------------------------+ | Steve Bollinger | Internet: billkatt@caen.engin.umich.edu | | 4297 Sulgrave Dr. +------+---------------------------------------------+ | Swartz Creek, Mi. 48473 | "My employer doesn't take my opinion any | +-----------------------------+ more seriously than you do." | | "You remember the IIe, it +---------------------------------------------+ | was the machine Apple made before they decided people didn't need | | machines with big screens, color, or slots." | | - Harry Anderson (from NBC's Night Court) | +---------------------------------------------------------------------------+