Re: Simulating menu bar blink in Cocoa

2008-04-19 Thread John Stiles
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

Re: Simulating menu bar blink in Cocoa

2008-04-19 Thread Benjamin Stiglitz
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

Re: Simulating menu bar blink in Cocoa

2008-04-19 Thread Jean-Daniel Dupas
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

Re: Simulating menu bar blink in Cocoa

2008-04-18 Thread Benjamin Stiglitz
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

Re: Simulating menu bar blink in Cocoa

2008-04-18 Thread John Stiles
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

Re: Simulating menu bar blink in Cocoa

2008-04-17 Thread Randall Meadows
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

Re: Simulating menu bar blink in Cocoa

2008-04-17 Thread John Stiles
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

Re: Simulating menu bar blink in Cocoa

2008-04-17 Thread John Stiles
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

Re: Simulating menu bar blink in Cocoa

2008-04-17 Thread Randall Meadows
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