• 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
Programmatically displaying NSStatusItem's menu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Programmatically displaying NSStatusItem's menu


  • Subject: Programmatically displaying NSStatusItem's menu
  • From: Adam Warski <email@hidden>
  • Date: Thu, 28 May 2009 07:43:37 +0200

Hello,

I have a simple NSStatusItem with a menu (no custom views), just using text as the title.
When I click on it, everything displays fine, however now I would like to display it programmatically - in other words, simulate a mouse click on the status item's text.
Currently I'm invoking "popUpStatusItemMenu", and this shows the menu, but doesn't highlight the title.


How could I highlight the title? Or maybe there's a better way to simulate the mouse click?

--
Thanks,
Adam
_______________________________________________

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


  • Prev by Date: Re: How determine if file is in Trash, given Path or Alias
  • Next by Date: Re: Creating, Constructing and Managing Dynamic (Sub)Views
  • Previous by thread: Re: Creating, Constructing and Managing Dynamic (Sub)Views
  • Next by thread: Booleans
  • Index(es):
    • Date
    • Thread