On May 7, 2013, at 7:00 PM, Allan Odgaard <lists+cocoa-...@simplit.com> wrote:
> TextMate’s implementation is here > https://github.com/textmate/textmate/blob/master/Frameworks/OakAppKit/src/NSMenuItem%20Additions.mm#L170-L189 > and sets the title as an attributed string using an NSTextTableBlock to have > the key equivalent string show as the second column. This is fairly > unobtrusive and the only (user visible) shortcoming I have found is that it > doesn’t left/right align the key/modifier glyphs and writes out F1-Fn instead > of using the special glyphs for these keys. Any reason you're not using a custom view-based NSMenuItem? It might be easier to get good results that way. --Kyle Sluder _______________________________________________ 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