• 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
Re: Showing numpad key equivs in menu items
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Showing numpad key equivs in menu items


  • Subject: Re: Showing numpad key equivs in menu items
  • From: Allan Odgaard <email@hidden>
  • Date: Wed, 08 May 2013 09:47:47 +0700

On May 8, 2013, at 9:28, Kyle Sluder <email@hidden> wrote:

>> […] sets the title as an attributed string using an NSTextTableBlock […]
> Any reason you're not using a custom view-based NSMenuItem? It might be easier to get good results that way.

A custom view means you have to render everything yourself. That is not only a lot of work as you have to match the OS exactly for the different states a menu item can be in, drawing the selection gradient, and maybe also have to deal with accessibility. But it’s also code that you will need to update if the look of the menus change in the future.

No doubt in my mind that the sometimes non-optimal glyph alignment is to prefer over the above.


_______________________________________________

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: 
 >Re: Showing numpad key equivs in menu items (From: gweston <email@hidden>)
 >Re: Showing numpad key equivs in menu items (From: Eric Schlegel <email@hidden>)
 >Re: Showing numpad key equivs in menu items (From: "David M. Cotter" <email@hidden>)
 >Re: Showing numpad key equivs in menu items (From: Allan Odgaard <email@hidden>)
 >Re: Showing numpad key equivs in menu items (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Showing numpad key equivs in menu items
  • Next by Date: Cocoaheads Lake Forest meets this Wednesday, 5/8, at 7pm
  • Previous by thread: Re: Showing numpad key equivs in menu items
  • Next by thread: Re: Showing numpad key equivs in menu items
  • Index(es):
    • Date
    • Thread