Wednesday, 5 September 2007

How To edit an NSTextCell with a double-click

Just override the container mouseDown


@implementation MyMatrix
- (void)mouseDown:(NSEvent *)e {
if ([e clickCount] == 2) {
[super mouseDown:e];
} else {
[[self superview] mouseDown:e];
}
}
@end

:)