Cog/Utils/ClickField.m

20 lines
336 B
Mathematica
Raw Normal View History

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