2005-06-29 15:53:00 +00:00
|
|
|
#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]];
|
2005-06-29 15:53:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|