On May 8, 2013, at 9:28, Kyle Sluder <k...@ksluder.com> 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to