Pregunta

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?

¿Fue útil?

Solución

Call [super mouseDown:theEvent];

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top