I have an NSStatusItem with an IB generated custom view (set using setView. My problem is that the NSStatusItem doesn't accept any mouse clicks. It acts like it's a static image.
I've tried using the following method, But when I click the status item, it never gets called.
I've also tried setting actions on some of the items in the view. They, too, never get called when clicked.
Anyone know how to get this working? Thanks.
I've tried using the following method, But when I click the status item, it never gets called.
Code:
-(void)mouseDown:(NSEvent *)event
{
NSLog(@"Mouse event recieved");
}
I've also tried setting actions on some of the items in the view. They, too, never get called when clicked.
Anyone know how to get this working? Thanks.