Can't get setDelegate to work on NSMenu attached to NSStatusItem
Can't get setDelegate to work on NSMenu attached to NSStatusItem
- Subject: Can't get setDelegate to work on NSMenu attached to NSStatusItem
- From: "Mark D. Gerl" <email@hidden>
- Date: Tue, 3 Mar 2009 09:27:21 -0500
I have a working NSStatusItem installed with a menu. I need to
dynamically alter that menu before it's presented. I'm trying to do
something along the lines of what the airport menu does (try option-
clicking on it).
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?
TIA,
M
--
Mark D. Gerl, Multimedia Design Group, <mailto:email@hidden>
_______________________________________________
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