Re: [SOLVED] Simulating menu bar blink in Cocoa

2008-04-19 Thread John Stiles
Could you do something else to cause VoiceOver to explicitly say the string you want it to? Martin Wierschin wrote: The "fake temporary item" solution actually works pretty well. It's the last thing I'd call elegant, but here's how you can blink a menu title in Cocoa. Unfortunately that solu

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: [SOLVED] Simulating menu bar blink in Cocoa

2008-04-18 Thread Martin Wierschin
The "fake temporary item" solution actually works pretty well. It's the last thing I'd call elegant, but here's how you can blink a menu title in Cocoa. Unfortunately that solution (and any of the other horrible strategies available) trigger VoiceOver for the menu item. Anyone know a way

Re: [SOLVED] Simulating menu bar blink in Cocoa

2008-04-18 Thread Martin Wierschin
The "fake temporary item" solution actually works pretty well. It's the last thing I'd call elegant, but here's how you can blink a menu title in Cocoa. Unfortunately that solution (and any of the other horrible strategies available) trigger VoiceOver for the menu item. Anyone know a way to

[SOLVED] Simulating menu bar blink in Cocoa

2008-04-18 Thread John Stiles
The "fake temporary item" solution actually works pretty well. It's the last thing I'd call elegant, but here's how you can blink a menu title in Cocoa. This assumes that you aren't actually assigning the command+F35 key equivalent to any of your menu items... hopefully a safe assumption for th

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

Simulating menu bar blink in Cocoa

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