Re: Showing numpad key equivs in menu items
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