• 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
Setting key equivalent to arrow key?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setting key equivalent to arrow key?


  • Subject: Setting key equivalent to arrow key?
  • From: Darrin Cardani <email@hidden>
  • Date: Mon, 8 Mar 2004 15:39:54 -0600

I have an NSButton, and I want to set its key equivalent to option left arrow. However, [ NSButton setKeyEquivalent: ] takes a string. I tried putting the UniCode left arrow character (0x2190) into a string and using that, but it didn't work. I also tried putting character 123 into a string, as that's the keyCode that [ NSEvent keyCode ] returns when the left arrow is pressed. However, that also did not work. So then I tried putting UniCode character 0xF702 into a string, since that's the character returned by [ NSEvent characters ] when the left arrow key is pressed, and that also did not work. Is there any way to do what I want?

Thanks,
Darrin
--
Darrin Cardani - email@hidden
President, Buena Software, Inc.
<http://www.buena.com/>
Video, Image and Audio Processing Development
_______________________________________________
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.


  • Prev by Date: Re: Periodic waking from a "deep" sleep ?
  • Next by Date: Re: [OT] Apple Developer Certification
  • Previous by thread: Re: [OT] Apple Developer Certification
  • Next by thread: Re: Setting key equivalent to arrow key?
  • Index(es):
    • Date
    • Thread