July 2011
Sun Mon Tue Wed Thu Fri Sat
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            

March 04, 2003
Weird Cocoa Limitation

Cocoa doesn't supports menu shortcuts that have no Command key in them. I wonder why - NSApplication calls -[NSMenu performKeyEquivalent:] only if it sees a Command key modifier in the event.

This would make sense if we were in Mac OS 7 days when standard menu definition didn't supported no-Command shortcuts, but since Mac OS X uses all-cool and great Carbon menus (yes, Cocoa menus are in fact mapped directly to Carbon), there is really no reason to implicitely not support something that is already there. It doesn't takes too much time to check, either, so forget about possible performance overhead.

Cocoa experts, anyone, am I missing a bigger picture?

 Posted by slava at 01:21 PM | Comments (3) | TrackBack (0)
Related:
Comments

Hehehe! You said OS 7.. That is soooo 1996.

Posted by: Jason Anderson on March 4, 2003 6:52 PM

More like 1991. Now THOSE were the good old days. I still think that the name "IIfx" was totally cool. It sounds powerful and nifty. Almost as good as the SGI Indigo IIextreme my all time favorite computer name.

Posted by: Jeremy Wood on March 5, 2003 2:03 AM

I owned a IIfx, bought it new, it went out with the trash last year, lol.

Posted by: Terri on March 5, 2003 8:14 AM