• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Simulating menu bar blink in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simulating menu bar blink in Cocoa


  • Subject: Re: Simulating menu bar blink in Cocoa
  • From: John Stiles <email@hidden>
  • Date: Thu, 17 Apr 2008 11:14:58 -0700

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.
For the curious, I tried the next best thing—NSMenu's -performActionForItemAtIndex: —and this API does not appear to simulate the menu blink, although it arguably should.
_______________________________________________


Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Simulating menu bar blink in Cocoa
      • From: John Stiles <email@hidden>
References: 
 >Simulating menu bar blink in Cocoa (From: John Stiles <email@hidden>)
 >Re: Simulating menu bar blink in Cocoa (From: Randall Meadows <email@hidden>)
 >Re: Simulating menu bar blink in Cocoa (From: John Stiles <email@hidden>)

  • Prev by Date: Re: Simulating menu bar blink in Cocoa
  • Next by Date: Re: Simulating menu bar blink in Cocoa
  • Previous by thread: Re: Simulating menu bar blink in Cocoa
  • Next by thread: Re: Simulating menu bar blink in Cocoa
  • Index(es):
    • Date
    • Thread