I want to create an application with this functionality, it's simple: When click down the mouse a button I want to change the text of a label and when I click up to change again this label text.
Can you help me, please? Dont know how to do
I did this:
#import "MyButton.h"
@implementation MyButton
- (void)mouseDown:(NSEvent *)event
{
NSLog(@"down");
}
- (void)mouseUp:(NSEvent *)event
{
NSLog(@"up");
}
and it works, but when I want to handle the events, nothing happens
Thanks