To forward key events to another window, make subclass ofNSWindow
and overridesendEvent
:- (void) sendEvent: (NSEvent *) anEvent { if ([anEvent type] == NSKeyDown) { [someOtherWindow sendEvent: anEvent]; } else { [super sendEvent: anEvent]; } } // sendEventIt's up to you to figure out what "someOtherWindow
" is, whether it's a delegate or an instance variable that holds the other window.