• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting Cursor key events in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting Cursor key events in Cocoa


  • Subject: Re: Getting Cursor key events in Cocoa
  • From: Jason Blake <email@hidden>
  • Date: Thu, 10 Jan 2002 18:42:12 -0600

ok, yea RTFM ;). but FYI from the documentation for NSEvent:

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

<it then goes on to list some constants, and at the top of the list is:>
NSUpArrowFunctionKey
NSDownArrowFunctionKey
NSLeftArrowFunctionKey
NSRightArrowFunctionKey

I don't know if Keycode returns these values but you could experiment and see.
On Thursday, January 10, 2002, at 05:53 PM, Mike Brinkman wrote:

O.K.,

I'm sure everybody's going to say RTFM, but...

I've checked out NSResponder, keyDown, and NSEvent, but didn't see anything
which told me which key is which. I'm primarily interested in finding out if
someone has pushed the up, down, left or right arrow key. If there's some
place that lists what to event is generated for each key, I'd like to find
out.

Thanks in advance!

Mike
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Getting Cursor key events in Cocoa (From: Mike Brinkman <email@hidden>)

  • Prev by Date: Re: Easiest way to delete a file
  • Next by Date: Dragging to NSToolbar
  • Previous by thread: Getting Cursor key events in Cocoa
  • Next by thread: Distributed Objects problem
  • Index(es):
    • Date
    • Thread