• 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: Can't get setDelegate to work on NSMenu attached to NSStatusItem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't get setDelegate to work on NSMenu attached to NSStatusItem


  • Subject: Re: Can't get setDelegate to work on NSMenu attached to NSStatusItem
  • From: Nick Zitzmann <email@hidden>
  • Date: Tue, 3 Mar 2009 09:52:41 -0700


On Mar 3, 2009, at 7:27 AM, Mark D. Gerl wrote:

So, I need to tap into some NSMenu events - most notably the menuNeedsUpdate: delegate method. However, when I call the setDelegate: of my NSMenu that's attached to my NSStatusItem, the icon shows, and highlights when clicked, but the menu never pops and the delegate method is never called.

I've googled until I'm blue in the face. There's hints of some reversed engineered private classes, but it seems to me that the api is there to do what I need, between NSMenu and NSStatusItem.

What, pray tell, am I doing wrong?


Can you please show your code? I've done this before, and it worked when I tried it.

Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________

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: Can't get setDelegate to work on NSMenu attached to NSStatusItem
      • From: "Mark D. Gerl" <email@hidden>
References: 
 >Can't get setDelegate to work on NSMenu attached to NSStatusItem (From: "Mark D. Gerl" <email@hidden>)

  • Prev by Date: Re: float from NSData
  • Next by Date: Re: Path for writeToFile
  • Previous by thread: Can't get setDelegate to work on NSMenu attached to NSStatusItem
  • Next by thread: Re: Can't get setDelegate to work on NSMenu attached to NSStatusItem
  • Index(es):
    • Date
    • Thread