cog/Utils/ClickField.m

18 lines
262 B
Matlab
Raw Normal View History

#import "ClickField.h"
@implementation ClickField
- (BOOL)acceptsFirstMouse:(NSEvent *)theEvent {
return YES;
}
- (void)mouseDown:(NSEvent *)theEvent
{
if([theEvent type] == NSLeftMouseDown)
{
2006-04-05 17:25:51 +00:00
[self sendAction:[self action] to:[self target]];
}
}
@end