Hello,
Is there a way to be notified when someone clicks on my
systemStatusBar Item OR when the pop up menu becomes visible?
This is how the system status bar is created:
{
...
statusBar = [[NSStatusBar systemStatusBar] retain];
statusItem = [[statusBar statusItemWithLength:50] retain]
[statusItem setLength: NSVariableStatusItemLength];
[statusItem setHighlightMode:YES];
[statusItem setMenu:theDockMenu];
[statusItem setImage: img ];
[statusItem setEnabled:YES];
[statusItem setLength:NSVariableStatusItemLength];
I tried calling:
[statusItem setTarget:self];
[statusItem setAction:@selector(onStatusMenu:)];
}
- (void)onStatusMenu:(id)none
{
NSLog(@"onStatusMenu");
}
However the action is never called and after investigating online it
looks like setTarget/setAction dont work for image status items.
Thank you,
-Vance
_______________________________________________
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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden
This email sent to email@hidden