18 lines
262 B
Matlab
18 lines
262 B
Matlab
|
#import "ClickField.h"
|
||
|
|
||
|
@implementation ClickField
|
||
|
|
||
|
- (BOOL)acceptsFirstMouse:(NSEvent *)theEvent {
|
||
|
return YES;
|
||
|
}
|
||
|
|
||
|
- (void)mouseDown:(NSEvent *)theEvent
|
||
|
{
|
||
|
if([theEvent type] == NSLeftMouseDown)
|
||
|
{
|
||
|
[self sendAction:[self action] to:[self target]];
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@end
|