• 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
Non-character as button key equivalent
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Non-character as button key equivalent


  • Subject: Non-character as button key equivalent
  • From: Thomas Jahnsen <email@hidden>
  • Date: Thu, 25 Jul 2002 21:14:20 +1000

Hello

I'm having two buttons with arrows in them, one to the right and one to the left. Now I want the user to be able to press Cmd-Right/Left Arrow to invoke these buttons (besides simply clicking them). But I am a bit unsure of what to type in the IB key equivalent box, or pass to the NSButton setKeyEquivalent: (which takes an NSString argument).
Does Cocoa support non-printing characters as key equivalent? I know there is functionality for it in Carbon, there is a Menu Manager function SetMenuItemKeyGlyph that can set the printed equivalent to arrows.
And no, there are no text fields in this window that wants Cmd-Arrow to modify the insertion point.

-Thomas Jahnsen
_______________________________________________
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: NSScrollview delegate?
  • Next by Date: Re: What is the purpose of static typing?
  • Previous by thread: Re: double click call textedit
  • Next by thread: Re: Non-character as button key equivalent
  • Index(es):
    • Date
    • Thread