• 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: Help with text input
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with text input


  • Subject: Re: Help with text input
  • From: "Paul Sanders" <email@hidden>
  • Date: Fri, 30 Apr 2010 15:53:17 +0100

> what is the best way on cocoa to determin raw key (physical key) input?

http://developer.apple.com/mac/library/documentation/cocoa/reference/ApplicationKit/Classes/NSEvent_Class/Reference/Reference.html#//apple_ref/doc/uid/20000016-keyCode

and:

http://developer.apple.com/mac/library/documentation/cocoa/reference/ApplicationKit/Classes/NSEvent_Class/Reference/Reference.html#//apple_ref/doc/uid/20000016-SW136

To detect a keypress for a modifier key, you need to look for an NSFlagsChanged event.  The documentation for NSEvent covers all this.  I imagine you are already familiar with the key codes generated by an Apple keyboard.  There's a nifty little app out there called Ukelele which will display them.

Paul Sanders.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

References: 
 >Help with text input (From: Bill Appleton <email@hidden>)
 >Re: Help with text input (From: Jens Alfke <email@hidden>)
 >Re: Help with text input (From: Charles Srstka <email@hidden>)
 >Re: Help with text input (From: Douglas Davidson <email@hidden>)
 >Re: Help with text input (From: Bill Appleton <email@hidden>)
 >Re: Help with text input (From: Graham Cox <email@hidden>)
 >Re: Help with text input (From: Bill Appleton <email@hidden>)

  • Prev by Date: Re: Help with text input
  • Next by Date: Re: Help with threads and queues
  • Previous by thread: Re: Help with text input
  • Next by thread: Re: Help with text input
  • Index(es):
    • Date
    • Thread