From 4a4d3bee0b75ec62bf1d77a7e8eb543293e7cceb Mon Sep 17 00:00:00 2001 From: Lukas Heiniger Date: Tue, 30 Apr 2013 11:19:26 +0200 Subject: [PATCH] Fixes responder chain with RBLViewController --- Rebel/NSView+RBLViewControllerAdditions.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Rebel/NSView+RBLViewControllerAdditions.m b/Rebel/NSView+RBLViewControllerAdditions.m index 6ea16d2..805996c 100644 --- a/Rebel/NSView+RBLViewControllerAdditions.m +++ b/Rebel/NSView+RBLViewControllerAdditions.m @@ -26,7 +26,7 @@ void *kRBLViewControllerKey = &kRBLViewControllerKey; if (self.rbl_viewController) { NSResponder *controllerNextResponder = [self.rbl_viewController nextResponder]; - [self setNextResponder:controllerNextResponder]; + [self custom_setNextResponder:controllerNextResponder]; [self.rbl_viewController setNextResponder:nil]; } @@ -34,7 +34,7 @@ void *kRBLViewControllerKey = &kRBLViewControllerKey; if (newViewController) { NSResponder *ownResponder = [self nextResponder]; - [self setNextResponder:self.rbl_viewController]; + [self custom_setNextResponder:self.rbl_viewController]; [self.rbl_viewController setNextResponder:ownResponder]; } }