Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
jGNEFilter
Last Revision: | Version 1.0, 2003-01-14 First Version |
Build Requirements: | |
Runtime Requirements: | Carbon |
JGNESample This snippet is a sample GetNextEvent filter which uses the JGNEFilter mechanism described in Tech Note #85 "GetNextEvent: Blinking Apple Menu". The init, written in MPW assembler, installs a filter which SysBeeps whenever a key is pressed with the shift key held down. The jGNE mechanism is the only valid place where the event record can be examined after a GetNextEvent call, since tail patching GetNextEvent breaks several aspects of the system.
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-14