• 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: Chaging NSStatusItem menus.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Chaging NSStatusItem menus.


  • Subject: Re: Chaging NSStatusItem menus.
  • From: Jeremy <email@hidden>
  • Date: Mon, 25 Feb 2008 16:30:36 -0500

I.S.,

Surprisingly, yes. I referred to the documentation BEFORE asking here. That was the only method that seemed like it would work, but it doesn't. So, hopefully this can be done. I also tried changing the title to the one action I want and setting the action but that didn't work. So I'm stuck here. And that was the ONLY method I have tried.

Jeremy

"For a long time it puzzled me how something so expensive, so leading edge, could be so useless, and then it occurred to me that a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are, in short, a perfect match." - Bill Bryson


On Feb 25, 2008, at 4:26 PM, I. Savant wrote:

How can I switch menus for an NSStatusItem programatically? So if the
user chooses to "quit" the application from the NSStatusItem I can
switch it's menu to be another menu with launch options.

I admit I've never created a status item before, but have you tried the -setMenu: method referenced in the documentation?

--
I.S.

_______________________________________________

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: Chaging NSStatusItem menus.
      • From: "I. Savant" <email@hidden>
References: 
 >Chaging NSStatusItem menus. (From: Jeremy <email@hidden>)
 >Re: Chaging NSStatusItem menus. (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: Chaging NSStatusItem menus.
  • Next by Date: Re: Chaging NSStatusItem menus.
  • Previous by thread: Re: Chaging NSStatusItem menus.
  • Next by thread: Re: Chaging NSStatusItem menus.
  • Index(es):
    • Date
    • Thread