You may use NSText
- (void)textDidEndEditing:(NSNotification *)aNotification
delegate method, where you should use NSWindow
’s makeFirstResponder
: to change the current first responder. See the NSResponder class reference for details on this.
First set delegate
of your firs textField to self
. Then in same class:
- (void)textDidEndEditing:(NSNotification *)aNotification {
NSLog(@"delegate method");
[self.window makeFirstResponder:[[[aNotification object]window]nextResponder]];
}
I assume that you do this in AppDelegate class.