سؤال

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?

هل كانت مفيدة؟

المحلول

Call [super mouseDown:theEvent];

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top