Question

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?

Was it helpful?

Solution

Call [super mouseDown:theEvent];

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top