Re: Showing numpad key equivs in menu items

2013-05-21 Thread Steve Mills
On May 7, 2013, at 21:00:00, 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

Re: Showing numpad key equivs in menu items

2013-05-08 Thread David M. Cotter
Would you be able to share this code? well, it's incomplete at the moment, i haven't sewn it all up.and besides that i'd have to get permission to share it, as it's adobe code. i'm on sabbatical now so i'm not even really here too. TextMate also draws a custom string as key equivalent

Re: Showing numpad key equivs in menu items

2013-05-08 Thread Allan Odgaard
On May 8, 2013, at 23:17, David M. Cotter m...@davecotter.com wrote: TextMate also draws a custom string as key equivalent ... the only (user visible) shortcoming I have found is that it doesn’t left/right align the key/modifier glyphs this was a requirement of ours, to have it actually be

Re: Showing numpad key equivs in menu items

2013-05-07 Thread Kyle Sluder
On May 6, 2013, at 8:20 PM, Steve Mills smi...@makemusic.com wrote: On May 6, 2013, at 16:58:10, gweston gwes...@mac.com wrote: In light of the great opportunity for user confusion - because a little rectangle around the number is hardly a clear indicator - and the reality that many users

Re: Showing numpad key equivs in menu items

2013-05-07 Thread Steve Mills
On May 7, 2013, at 02:04:09, Kyle Sluder k...@ksluder.com wrote: This is a terrible argument, and you know it not to be true. If you showed those three glyphs to a non-Western person, would they be likely to discern a difference? Depending on the arguments I pass, even my _computer_ won’t

Re: Showing numpad key equivs in menu items

2013-05-07 Thread Steve Mills
On May 7, 2013, at 14:25:52, Quincey Morris quinceymor...@rivergatesoftware.com wrote: 1. The software Steve is dealing with (Finale, I believe he has stated earlier) has special needs. I've used music notation software for note-by-note entry in the past, and it's a horrendous chore without

Re: Showing numpad key equivs in menu items

2013-05-07 Thread gweston
Steve Mills said:  Such software has already established the precedent that it needs lots and lots of keyboard shortcuts. (Finale is well over 10 years old, IIRC.) Steve isn't condemning users to a keyboard shortcut nightmare, he's continuing a well-established though specialized UI pattern.

Re: Showing numpad key equivs in menu items

2013-05-07 Thread Steven Degutis
That's the problem with legacy. We learn from the past, and realize our mistakes. But sometimes we can't fix them, because users already depend on them. Or rather, we do fix them, and anger lots of people who need it to keep working the old way. Reminds me of http://xkcd.com/1172/ ... legacy:

Re: Showing numpad key equivs in menu items

2013-05-07 Thread Eric Schlegel
On May 7, 2013, at 4:45 PM, gweston gwes...@mac.com wrote: In that case, I think Steve needs to quit whining that Apple engineers aren't doing his job for him, and implement his own menu drawing for his specialized case. You need to consider the possibility that Apple decided that not

Re: Showing numpad key equivs in menu items

2013-05-07 Thread David M. Cotter
Hi, I'm Dave, senior engineer at Adobe Systems. We definitely want this functionality, in fact filed a DTS incident for (and got some help with) custom-drawing menu items, for the express purpose of drawing an arbitrary string as the keyboard shortcut in menus. and i can tell you the work

Re: Showing numpad key equivs in menu items

2013-05-07 Thread Allan Odgaard
On May 8, 2013, at 7:36, David M. Cotter m...@davecotter.com wrote: […] filed a DTS incident for (and got some help with) custom-drawing menu items, for the express purpose of drawing an arbitrary string as the keyboard shortcut in menus. and i can tell you the work around was a PITA and

Re: Showing numpad key equivs in menu items

2013-05-07 Thread Kyle Sluder
On May 7, 2013, at 5:36 PM, David M. Cotter m...@davecotter.com wrote: Hi, I'm Dave, senior engineer at Adobe Systems. We definitely want this functionality, in fact filed a DTS incident for (and got some help with) custom-drawing menu items, for the express purpose of drawing an

Re: Showing numpad key equivs in menu items

2013-05-07 Thread Kyle Sluder
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

Re: Showing numpad key equivs in menu items

2013-05-07 Thread Allan Odgaard
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

Showing numpad key equivs in menu items

2013-05-06 Thread Steve Mills
So is there no way in Cocoa to assign key equivs by key code instead of by string? The Carbon menu item could be set by glyph (SetMenuItemKeyGlyph) or by key code (SetMenuItemCommandKey), which sure were handy. The key equiv would clearly show numpad glyphs with a rounded rect around them. In

Re: Showing numpad key equivs in menu items

2013-05-06 Thread Ken Thomases
On May 6, 2013, at 1:19 PM, Steve Mills wrote: So is there no way in Cocoa to assign key equivs by key code instead of by string? The Carbon menu item could be set by glyph (SetMenuItemKeyGlyph) or by key code (SetMenuItemCommandKey), which sure were handy. The key equiv would clearly show

Re: Showing numpad key equivs in menu items

2013-05-06 Thread gweston
Steve Mills asked:  So is there no way in Cocoa to assign key equivs by key code instead of by string? The Carbon menu item could be set by glyph (SetMenuItemKeyGlyph) or by key code (SetMenuItemCommandKey), which sure were handy. The key equiv would clearly show numpad glyphs with a rounded

Re: Showing numpad key equivs in menu items

2013-05-06 Thread Eric Schlegel
On May 6, 2013, at 11:19 AM, Steve Mills smi...@makemusic.com wrote: So is there no way in Cocoa to assign key equivs by key code instead of by string? The Carbon menu item could be set by glyph (SetMenuItemKeyGlyph) or by key code (SetMenuItemCommandKey), which sure were handy. The key

Re: Showing numpad key equivs in menu items

2013-05-06 Thread Steve Mills
On May 6, 2013, at 14:20:44, Ken Thomases k...@codeweavers.com wrote: I don't know if this works, but you might try [menuItem setKeyEquivalentModifierMask:NSNumericPadKeyMask]. That said, I'm not sure that users will understand the distinction between 1 and numpad 1, even with a rounded

Re: Showing numpad key equivs in menu items

2013-05-06 Thread Steve Mills
On May 6, 2013, at 16:58:10, gweston gwes...@mac.com wrote: In light of the great opportunity for user confusion - because a little rectangle around the number is hardly a clear indicator - and the reality that many users do not have a number pad, I think the solution I'd recommend is to

Re: Showing numpad key equivs in menu items

2013-05-06 Thread Steve Mills
On May 6, 2013, at 17:50:23, Eric Schlegel eri...@apple.com wrote: Unfortunately there's no NSMenu API to support this. Please vote for one by filing a Radar. radar://13823585 -- Steve Mills office: 952-818-3871 home: 952-401-6255 cell: 612-803-6157

Re: Showing numpad key equivs in menu items

2013-05-06 Thread Steven Degutis
Part of the territory. Apple knows better than you, thus so do its fanboys. On Mon, May 6, 2013 at 10:20 PM, Steve Mills smi...@makemusic.com wrote: On May 6, 2013, at 16:58:10, gweston gwes...@mac.com wrote: In light of the great opportunity for user confusion - because a little rectangle