FROM : Randall Meadows
DATE : Thu Apr 17 20:16:05 2008
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 Cocoa? In
>>> Carbon, it's FlashMenuBar(menuID) but I don't see a Cocoa
>>> equivalent.
>>
>> NSMenuView's -performActionWithHighlightingForItemAtIndex:?
>>
>> (Never used it, just looked it up...)
> This is at the top of the file:
>
> Note: NSMenuView is deprecated and is no longer used to draw
> menus. Calling its methods will not affect the appearance of your
> menus.
>
> I don't think this will work. Actually I don't think there is even
> a way to get a valid NSMenuView* at all.
Ah, I didn't even look at the top of that file! I figured it would
likely be a perform... method, like NSButton's performClick:. Sorry
for opening the rabbit hole...
DATE : Thu Apr 17 20:16:05 2008
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 Cocoa? In
>>> Carbon, it's FlashMenuBar(menuID) but I don't see a Cocoa
>>> equivalent.
>>
>> NSMenuView's -performActionWithHighlightingForItemAtIndex:?
>>
>> (Never used it, just looked it up...)
> This is at the top of the file:
>
> Note: NSMenuView is deprecated and is no longer used to draw
> menus. Calling its methods will not affect the appearance of your
> menus.
>
> I don't think this will work. Actually I don't think there is even
> a way to get a valid NSMenuView* at all.
Ah, I didn't even look at the top of that file! I figured it would
likely be a perform... method, like NSButton's performClick:. Sorry
for opening the rabbit hole...
| Related mails | Author | Date |
|---|---|---|
| John Stiles | Apr 17, 19:54 | |
| Randall Meadows | Apr 17, 20:01 | |
| John Stiles | Apr 17, 20:05 | |
| John Stiles | Apr 17, 20:14 | |
| Randall Meadows | Apr 17, 20:16 | |
| John Stiles | Apr 18, 20:44 | |
| John Stiles | Apr 18, 23:25 | |
| Martin Wierschin | Apr 19, 04:20 | |
| Martin Wierschin | Apr 19, 04:22 | |
| Benjamin Stiglitz | Apr 19, 06:36 | |
| Jean-Daniel Dupas | Apr 19, 14:05 | |
| Benjamin Stiglitz | Apr 19, 23:42 | |
| John Stiles | Apr 20, 02:36 | |
| John Stiles | Apr 20, 02:37 |






Cocoa mail archive

