Path: utzoo!attcan!uunet!hodge!pnet06!thecloud From: thecloud@pnet06.cts.com (Ken Mcleod) Newsgroups: comp.sys.mac.programmer Subject: Re: Help! My program disables Finder double-clicking somehow. Message-ID: <221@hodge.UUCP> Date: 12 Jun 88 12:32:10 GMT Sender: rusty@hodge.UUCP Organization: People-Net [pnet06], Orange, CA Lines: 29 guido@cwi.nl (Guido van Rossum) writes: > [more stuff in reply to question about loss of double-clicks] > >Besides, the Finder should be smart enough to reset its event mask. There is a ***GLOBAL*** system event mask which is set by SetEventMask(). This causes the OS Event Manager to only post certain types of events to applications (and the Finder is an application). Most applications rightfully do not mess with the global mask; instead, if they don't want to receive certain types of events, they pass the appropriate mask to GetNextEvent/WaitNextEvent/EventAvail. (Ref. IM V.1 p.254; V.2 p.70) I have disassembled several pd/shareware applications that I've come across which cause the Finder to ignore double-clicks after they are run. In each, the SysEvtMask global at $0144 was being messed with. So if your program is causing the Finder to ignore double-clicks after you run it, and you're using SetEventMask(), DON'T. Alternately, you could do a SetEventMask(everyEvent-keyUpMask) just before your program exits...this resets the global mask to "factory specs." By the way, I assume the previous post by atchison@hpindda.HP.COM (Lee Atchison) meant to say "mouseUp events" instead of "keyUp events".... Disclaimer: I have 2MB RAM, and can run FWP *and* MF. Ken McLeod ========================= ....... ====================== UUCP: {crash uunet}!pnet06!thecloud :. .: "Fear, surprise, and ARPA: crash!pnet06!thecloud@nosc.mil :::.. ..::: ruthless efficiency. INET: thecloud@pnet06.cts.com ////