• 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
Drawing strings from a menu item's keyEquivalent
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Drawing strings from a menu item's keyEquivalent


  • Subject: Drawing strings from a menu item's keyEquivalent
  • From: Steve Mills <email@hidden>
  • Date: Fri, 31 May 2013 11:36:26 -0500

My custom menu item view is coming along nicely, except when it comes to Unicode key equivs such as used for the Home key (north west arrow \u2196). When I ask the item for its keyEquivalent, the string has the character \uf729 instead. Inspecting the .xib I see it has the utf8 value EF 9C A9 (same as \uf729, which is in the PUA). Why is this? How can I draw the key equiv correctly? Am I going to have to find the values of all these non-Roman keys and map the value from the menu item to the actual printable glyph? This menu Cocoa menu stuff is pretty neat, but *man* is it lacking in customizability.

There's also no NSColor method for getting disabled menu item text color, so I had to waste time trying different values until I found something that matches.

--
Steve Mills
office: 952-818-3871
home: 952-401-6255
cell: 612-803-6157



_______________________________________________

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: Drawing strings from a menu item's keyEquivalent
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: Flash inside an app
  • Next by Date: NSCell interiorBackgroundStyle wrong?
  • Previous by thread: Re: App store reject on asl log. How else do I get at the log messages?
  • Next by thread: Re: Drawing strings from a menu item's keyEquivalent
  • Index(es):
    • Date
    • Thread