Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
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




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


References: 
 >A question about key equivalents for menu items (From: Slava Pestov <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.