Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!oliveb!apple!austing From: austing@Apple.COM (Glenn L. Austin) Newsgroups: comp.sys.mac.programmer Subject: Re: Need some MF help Message-ID: <28789@apple.Apple.COM> Date: 11 Apr 89 18:14:49 GMT References: <1562@neoucom.UUCP> <28399@apple.Apple.COM> <43464@XAIT.Xerox.COM> <1227@internal.Apple.COM> <6849@saturn.ucsc.edu> Distribution: na Organization: Apple Computer Inc, Cupertino, CA Lines: 25 In article <6849@saturn.ucsc.edu> alibaba@ucscb.UCSC.EDU (Alexander M. Rosenberg) writes: >What if one wanted an app to talk to code preloaded by an INIT, hmm? What I did to implement a control key on the Mac Plus was to provide additional functionality to the existing calls. In other words: (in C) if ((eventMask == 0) && ((theEvent & 0xF8000000) == 0xF8000000) /* do my code */ else /* standard event call */ This allowed me to take an "illegal call" and make it a "call to my function" Note that I don't condone this, it just was convenient for my application (converting the command key to a control key). ----------------------------------------------------------------------------- | Glenn L. Austin | The nice thing about standards is that | | Apple Computer, Inc. | there are so many of them to choose from. | | Internet: austing@apple.com | -Andrew S. Tanenbaum | ----------------------------------------------------------------------------- | All opinions stated above are mine -- who else would want them? | -----------------------------------------------------------------------------