• 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: catching command-enter keyDown events in a table view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: catching command-enter keyDown events in a table view


  • Subject: Re: catching command-enter keyDown events in a table view
  • From: Will Mason <email@hidden>
  • Date: Thu, 4 Nov 2004 09:21:23 -0800 (PST)

> > 	unsigned short keyPress = [event keyCode];

If you take the key code from the event, you're creating a big headache
for yourself, since key codes are hardware dependent. Are you sure you
want to keep track of the key code for your desired key presses for
every keyboard that exists on every Mac in the world? Wouldn't it be
better to let Cocoa do that for you, and use the [NSEvent characters]
message instead? That way you get to work with hardware independent
Unicode values.

Just a thought,
Will
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: catching command-enter keyDown events in a table view
      • From: Todd Ransom <email@hidden>
References: 
 >Re: catching command-enter keyDown events in a table view (From: August Trometer <email@hidden>)

  • Prev by Date: Re: 1 pixel wide lines
  • Next by Date: nsmovieview controller disabled with mp3 audio file
  • Previous by thread: Re: catching command-enter keyDown events in a table view
  • Next by thread: Re: catching command-enter keyDown events in a table view
  • Index(es):
    • Date
    • Thread