• 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: A question about key equivalents for menu items
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A question about key equivalents for menu items


  • Subject: Re: A question about key equivalents for menu items
  • From: Peter Ammon <email@hidden>
  • Date: Mon, 26 Jan 2009 15:19:34 -0800


On Jan 26, 2009, at 2:57 PM, Slava Pestov wrote:

Hi all,

Is there a nice way to get a Unicode string from a keyboard shortcut,
that looks like the key equivalents in NSMenuItems, for rendering
elsewhere in a GUI?

Slava

Hey Slava,

No such function, unfortunately. You can roll your own with the Unicode characters for the modifier keys (0x2303, 0x2325, 0x21E7, 0x2318 for control, option, shift, and command), though there's still some special cased glyphs, like space. This would be worth an enhancement request.

-Peter

PS: Keep up the good work on Factor, it's way cool!

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: A question about key equivalents for menu items
      • From: "I. Savant" <email@hidden>
References: 
 >A question about key equivalents for menu items (From: Slava Pestov <email@hidden>)

  • Prev by Date: Re: Cocoa-dev Digest, Vol 6, Issue 154
  • Next by Date: Re: A question about key equivalents for menu items
  • Previous by thread: A question about key equivalents for menu items
  • Next by thread: Re: A question about key equivalents for menu items
  • Index(es):
    • Date
    • Thread