• 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
Draw key equivs for fkeys?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Delete empty Core Data entities from to-many relationship
  • Next by Date: Idea for Improving Vibrancy
  • Previous by thread: Re: Human-understandable process name
  • Next by thread: Idea for Improving Vibrancy
  • Index(es):
    • Date
    • Thread