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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to