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.
jGNE Helper
Last Revision: | Version 1.0, 2003-01-14 First Version |
Build Requirements: | |
Runtime Requirements: | Carbon |
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.
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-14