Re: check for Tab key pressed
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