TestKeyDownEventThis utility shows info about the raw KeyDown events that are received as you type in the upper text area.
download the TestKeyDownEvent project files (licensed under the GPL)
(Requires the Apple Developer Tools - I used XCode version 2.4)
This project illustrates several aspects of programming for Mac OS X using the Cocoa API:
- use of a subclass of NSTextView that overrides the 'keyDown' method
- use of the 'scrollRangetoVisible' method to keep the recently added text visible in the NSTextView