How can I know when an NSTextField becomes the first responder (i.e. when the user click on it to activate it, but before they start typing). I tried controlTextDidBeginEditing but this doesn't get called until the user types the first character.
method, defined in the NSResponder class (a superclass of NSTextField), like so:
- (BOOL)becomeFirstResponder {
BOOL flag=[super becomeFirstResponder];
if(flag)
{
// text field will become first responder
}
return flag
}
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more