Draw key equivs for fkeys?
Draw key equivs for fkeys?
- Subject: Draw key equivs for fkeys?
- From: Steve Mills <email@hidden>
- Date: Sun, 15 Feb 2015 01:19:02 -0600
I know there are special unicode characters defined for the fkeys in NSEvent.h, but those don't render to the actual F1-F15 glyphs that are in Lucida Grande, for example. (And what about F16-F19?) I used to be able to render these in Carbon in a very roundabout way using kTextEncodingMacKeyboardGlyphs with CFStringRef. But that encoding is defined in Carbon headers. Isn't there a modern way to draw a key equiv string that includes fkeys and other such keys? A year or two ago I was asking about drawing numpad keys in menu items, and added a radar for that, but this is different. This is my own key equiv NSView subclass.
I've looked at ShortcutRecorder, but it doesn't use those glyphs either. It displays them as multi-character strings, e.g. "F13".
--
Steve Mills
Drummer, Mac geek
_______________________________________________
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