• 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: more NSEvent stuff
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >more NSEvent stuff (From: David Cairns <email@hidden>)

  • Prev by Date: finding menu titles from another running app...
  • Next by Date: PopUpButtonCell display properly in NSTableView
  • Previous by thread: more NSEvent stuff
  • Next by thread: Re: more NSEvent stuff
  • Index(es):
    • Date
    • Thread