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 (“jGNE_Helper.zip”, 6.2K)
Download Sample (“jGNE_Helper.dmg”, 64.0K)



Description

This is "jGNE Helper", formerly a monthly posting to the Usenet newsgroup alt.sources.mac. It provides an example for INIT programmers interested in filtering events before they are handed to applications calling GetNextEvent (which is called by WaitNextEvent). The jGNE filter is the Apple-sanctioned method for filtering events. It is possible to patch event traps. It is sometimes even advisable. But since the jGNE filter is the sanctioned method, one ought to attempt to use it before patching traps. This code sample has a specific conflict with older versions of PopChar. Newer versions of PopChar have a fix which makes them compatible with this code. Users of older versions of PopChar should probably upgrade to the current version anyway -- this is a very old conflict. The conflict manifests itself by rendering a good portion of the screen "impervious" to clicks unless the option key is held down. This version of jGNE Helper was built with both Symantec THINK C 7 and Metrowerks CodeWarrior CW7 for 68K machines. It's entirely possible to write a native jGNEFilter. I've even done it before. However, it hasn't occurred to me how to fit a native filter into the context of this sample. For further info on the jGNE filter, consult your Technotes.

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.