• 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: simulate click on NSStatusItem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: simulate click on NSStatusItem


  • Subject: Re: simulate click on NSStatusItem
  • From: Kyle Sluder <email@hidden>
  • Date: Sun, 01 May 2011 17:40:49 -0700

On Sun, May 1, 2011 at 4:18 PM, Martin Batholdy <email@hidden> wrote:
> Hi,
>
>
> I am currently working on a StatusItem app
> (so I only have a small icon on the upper right side in the systemStatusBar).
>
> I recently implemented a shortcut for the main function of this status item app.
>
> Now when the shortcut-button is pressed an action is invoked just like you could invoke it by selecting the first menu item of the Status Item Menu.
>
> However when you use this keyboard-shortcut instead of the menu-item you don't get a feedback that something happened.
>
> The best feedback to the user that something happened would be (in my opinion) to see the menu item on the upper right side to go active ("Highlight-Mode") for a second and going inactive again
> (just like you clicked on it).

The menu item or the status item?

See -[NSStatusItem drawStatusBarBackgroundInRect:withHighlight:]. But
the API could probably be made easier by offering a -setHighlighted:
method.

--Kyle Sluder
_______________________________________________

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

References: 
 >simulate click on NSStatusItem (From: Martin Batholdy <email@hidden>)

  • Prev by Date: simulate click on NSStatusItem
  • Next by Date: *Send* a URL request from Cocoa to app's private URL scheme
  • Previous by thread: simulate click on NSStatusItem
  • Next by thread: *Send* a URL request from Cocoa to app's private URL scheme
  • Index(es):
    • Date
    • Thread