0

I subclassed NSTextView. The .m is very simple and short :

@implementation MyTextView

- (void)mouseDown:(NSEvent *)theEvent
{
    NSLog(@"click") ;
}

@end

But now, I cannot select text anymore in MyTextView. How can I fix that?

Colas
  • 3,473
  • 4
  • 29
  • 68

1 Answers1

1

Call [super mouseDown:theEvent];

Volker
  • 4,640
  • 1
  • 23
  • 31