cog/Custom/ClickField.m

20 lines
336 B
Matlab
Raw Normal View History

#import "ClickField.h"
@implementation ClickField
- (BOOL)acceptsFirstMouse:(NSEvent *)theEvent {
return YES;
}
- (void)mouseDown:(NSEvent *)theEvent
{
2006-04-28 23:19:14 +00:00
NSLog(@"MOUSING DOWN");
if([theEvent type] == NSLeftMouseDown)
{
2006-04-28 23:19:14 +00:00
// NSLog(@"SENDING ACTION: %@", [self action]);
2006-04-05 17:25:51 +00:00
[self sendAction:[self action] to:[self target]];
}
}
@end