• 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: Status Bar Item icon update
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Status Bar Item icon update


  • Subject: Re: Status Bar Item icon update
  • From: Daniel Jalkut <email@hidden>
  • Date: Wed, 21 May 2003 14:38:40 -0700

Unfortunately, Apple's default NSStatusItem implementation doesn't offer any very clean way to be notified just before the menu is displayed. This and other shortcomings of the standard StatusItem have caused me to bite the bullet and implement my own custom view.

For your purposes, however, you can implement the "validateMenuItem" routine in whatever class is the target for your menu items. This will get you called at roughly the right time to change your icon back.

Daniel

On Wednesday, May 21, 2003, at 05:18 AM, TACKEL wrote:

Hi,

I've created an status item app. To request user's attention in special events the
icon in the system bar is changed. So, once the user clicks in it to see the new
menu, that has been updated, I want to restore the default icon in the system
bar, but have some problems because I cannot use the setAction method of
NSStatusItem because it's only works when there is no menu attached to the
item.

Is there any notification I could catch? Any other idea?

Thanks,
Tackel.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Status Bar Item icon update (From: TACKEL <email@hidden>)

  • Prev by Date: Re: Drag and Drop a pointer?
  • Next by Date: Re: Sound & Cocoa
  • Previous by thread: Status Bar Item icon update
  • Next by thread: Re: Encapsulating methods in ObjC
  • Index(es):
    • Date
    • Thread