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