[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #25395] event key codes incompatible to apple
From: |
matt rice |
Subject: |
[bug #25395] event key codes incompatible to apple |
Date: |
Sat, 24 Jan 2009 17:22:01 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5 |
Follow-up Comment #2, bug #25395 (project gnustep):
at one point in time i remember the exact opposite was true, the internet
agrees.
http://objc.toodarkpark.net/AppKit/Classes/NSEvent.html#//apple_ref/occ/instm/NSEvent/keyCode
Returns the code for the keyboard key associated with the receiving key
event. Its value is hardware-dependent. Raises an
NSInternalInconsistencyException if sent to a non-key event.
http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSEvent_Class/Reference/Reference.html#//apple_ref/occ/instm/NSEvent/keyCode
The virtual key code. The returned value is hardware-independent.
from the book "cocoa programming" by anguish, buck, and yactman
"this is a device-dependent code. while it is provided for key-down, key-up,
and flags changed events, it is generally a very bad idea to use it."
the first version of Hillegass's "cocoa programming for Mac OS X" also
mentions it as hardware dependent and afaict has no example usage.
it doesn't appear that there exists any apple provided definition
here is a thread on the subject.
http://www.cocoabuilder.com/archive/message/cocoa/2006/7/13/167556
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?25395>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/