If the NSButton is not enabled, the mouseDown: and mouseUp: behave as expected (so when the mouse is pushed down, the mouseDown: is called, and when it is released, the mouseUp: is called)
However, if the NSButton IS enabled, than the mouseUp: doesn't get called at all, and mouseDown: is called AFTER the mouse has been released
- (void)mouseDown:(NSEvent *)theEvent {
[super mouseDown:theEvent];
}
- (void)mouseUp:(NSEvent *)theEvent {
[super mouseUp:theEvent];
}
Why is this behaving differently, and how can i force the correct behaviour (the same as when the button is NOT enabled)