Legacy Documentclose button

Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.

Current information on this Reference Library topic can be found here:

Version: 1.0

Posted: 2003-01-14

Build Requirements: N/A

Runtime Requirements: Carbon

View Source Code:

Download Sample (“jGNEFilter.zip”, 2.4K)
Download Sample (“jGNEFilter.dmg”, 59.2K)



Description

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.

Document Revision History

Date Notes
2003-01-14First Version

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.