I have an NSTextField which is by default non editable and is first responder.
I would like to make the NSTextField editable/active as soon as I click on it.
I subclassed it and used the mousedown event:
- (void)mouseDown:(NSEvent *)theEvent
{
NSLog(@"link mouse down");
[self setEditable:TRUE];
}
However I need to click 2 times on the NSTextFIeld to become active and editable, but for each click I can properly see the NSLog "Mouse down".
Anything I forgot to do ? Thanks