mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-22 16:18:53 +00:00
fixed: CPViewController doesn't participate fully in responder chain
This commit is contained in:
1 parent
85f7125f22
commit
d835cf0c00
1 file changed
+14
@@ -414,6 +414,20 @@ var CPViewControllerCachedCibs;
|
||||
[self didChangeValueForKey:"isViewLoaded"];
|
||||
}
|
||||
|
||||
/*!
|
||||
@method nextResponder
|
||||
Returns the receiver’s next responder.
|
||||
|
||||
@discussion The CPViewController implementation of this method returns the superview
|
||||
of the view controller's view. This effectively inserts the view controller
|
||||
into the responder chain between its view and the view's superview,
|
||||
assuming the view's next responder has been set to the view controller.
|
||||
*/
|
||||
- (id)nextResponder
|
||||
{
|
||||
return [_view superview];
|
||||
}
|
||||
|
||||
- (BOOL)automaticallyNotifiesObserversOfIsViewLoaded
|
||||
{
|
||||
return NO;
|
||||
|
||||
Reference in new issue
Block a user