• 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: check for Tab key pressed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: check for Tab key pressed


  • Subject: Re: check for Tab key pressed
  • From: Allan Odgaard <email@hidden>
  • Date: Tue, 23 Nov 2004 01:07:26 +0100

On Nov 22, 2004, at 20:57, John C. Randolph wrote:

On Nov 20, 2004, at 1:51 PM, email@hidden wrote:
How can i check for a Tab key press in a KeyDown: call for an NSView?
if ([[theEvent  characters] characterAtIndex:0] == NSTabCharacter)
    ...

Remember to check that there actually are characters before sending characterAtIndex:, otherwise you get a run-time exception for some key presses.


--
   http://macromates.com/

_______________________________________________
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


References: 
 >check for Tab key pressed (From: email@hidden)
 >Re: check for Tab key pressed (From: "John C. Randolph" <email@hidden>)

  • Prev by Date: Re: help on 'help books'
  • Next by Date: Newbie, regarding retain count and program flow
  • Previous by thread: Re: check for Tab key pressed
  • Next by thread: Can one rid of a control's border?
  • Index(es):
    • Date
    • Thread