Re: more NSEvent stuff
Re: more NSEvent stuff
- Subject: Re: more NSEvent stuff
- From: j o a r <email@hidden>
- Date: Mon, 5 May 2003 07:06:01 +0200
On Monday, May 5, 2003, at 04:51 Europe/Stockholm, David Cairns wrote:
thanx for the response to my last post! now my question is, how do i
capture left and right arrow keys being pressed? clearly this does not
work:
Would this work?
- (void) keyDown:(NSEvent *) event
{
unichar keyChar = [[event charactersIgnoringModifiers]
characterAtIndex: 0];
switch (keyChar)
{
case NSRightArrowFunctionKey :
NSLog(@"Got NSRightArrowFunctionKey");
break;
}
}
(Hacked together in Mail, use with caution...)
j o a r
_______________________________________________
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.