On Dec 22, 2010, at 1:44 PM, k...@highrolls.net wrote:
I call:
NSString *chars = [theEvent charactersIgnoringModifiers];
in -keyDown
The docs say
Function-Key Unicodes
These constants represent Unicode characters (0xF700–0xF8FF) that are
reserved for function keys on the keyboard. Combined in NSStrings, they are
the return values of the NSEvent methods characters and
charactersIgnoringModifiers and may be used in some parameters in the NSEvent
methodkeyEventWithType:location:modifierFlags:timestamp:windowNumber:context:characters:charactersIgnoringModifiers:isARepeat:keyCode:.
what is the proper way to see if chars is NSLeftArrowFunctionKey or
NSRightArrowFunctionKey?
NSString* theEventCharacters = [anEvent charactersIgnoringModifiers];
if ([theEventCharacters length] 0)
{
unichar theChar = [theEventCharacters characterAtIndex:0];
if (theChar == NSLeftArrowFunctionKey)
{
...
___
Ricky A. Sharp mailto:rsh...@instantinteractive.com
Instant Interactive(tm) http://www.instantinteractive.com
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com