No, that's not the problem. The problem is that some combinations simply
don't work. For instance, just as a random example, AppKit does not
match "option+," or "shift+`". (Haven't tried adding command but offhand
I don't have any reason to think that this would fix it.)
My app supports arbitr
If I understand well, your trying to catch event that match a menu
item shortcut minus the shift key. Isn't it possible to override -
[NSApp sendEvent:] as you did, but instead of taking care of the
event yourself, create a new event that match the menu item and
then call super with this new
Le 19 avr. 08 à 06:36, Benjamin Stiglitz a écrit :
As previously explained here, I'm handling hotkeys in my app via
custom code in order to work around some AppKit bugs.
How can I simulate the menu-title blink effect using Cocoa? In
Carbon, it's FlashMenuBar(menuID) but I don't see a Cocoa
As previously explained here, I'm handling hotkeys in my app via
custom code in order to work around some AppKit bugs.
How can I simulate the menu-title blink effect using Cocoa? In
Carbon, it's FlashMenuBar(menuID) but I don't see a Cocoa equivalent.
What’s the actual bug? Maybe there is a
Reading the list archives a little more, it looks like there may be two
ways to do this:
- _NSHighlightCarbonMenu and _NSUnhighlightCarbonMenu are SPIs which
take an NSMenu* and do exactly what you'd expect
- You can add a fake temporary menu item to your menu, with a suitably
bizarre key equi
On Apr 17, 2008, at 12:05 PM, John Stiles wrote:
Randall Meadows wrote:
On Apr 17, 2008, at 11:54 AM, John Stiles wrote:
As previously explained here, I'm handling hotkeys in my app via
custom code in order to work around some AppKit bugs.
How can I simulate the menu-title blink effect using
John Stiles wrote:
Randall Meadows wrote:
On Apr 17, 2008, at 11:54 AM, John Stiles wrote:
As previously explained here, I'm handling hotkeys in my app via
custom code in order to work around some AppKit bugs.
How can I simulate the menu-title blink effect using Cocoa? In
Carbon, it's FlashM
Randall Meadows wrote:
On Apr 17, 2008, at 11:54 AM, John Stiles wrote:
As previously explained here, I'm handling hotkeys in my app via
custom code in order to work around some AppKit bugs.
How can I simulate the menu-title blink effect using Cocoa? In
Carbon, it's FlashMenuBar(menuID) but I
On Apr 17, 2008, at 11:54 AM, John Stiles wrote:
As previously explained here, I'm handling hotkeys in my app via
custom code in order to work around some AppKit bugs.
How can I simulate the menu-title blink effect using Cocoa? In
Carbon, it's FlashMenuBar(menuID) but I don't see a Cocoa equ