From 4eb1490d800ad8d0669abed111b6ccf01ba8ac5d Mon Sep 17 00:00:00 2001 From: Ross Boucher Date: Mon, 22 Dec 2008 12:14:40 -0500 Subject: [PATCH] Fix for http://cappuccino.lighthouseapp.com/projects/16499/tickets/177-cpapplication-trytoperformwith-causes-infinite-recursion Not entirely sure this is the correct implementation, but I did fix the two typos and the infinite recursion. [#177 state:resolved milestone:0.6.5] --- AppKit/CPApplication.j | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AppKit/CPApplication.j b/AppKit/CPApplication.j index 2063b889f..399b272f5 100644 --- a/AppKit/CPApplication.j +++ b/AppKit/CPApplication.j @@ -485,12 +485,12 @@ CPRunContinuesResponse = -1002; if (!anAction) return NO; - if ([self tryToPerform:anAction with:anObject]) + if ([super tryToPerform:anAction with:anObject]) return YES; - if([_delegate respondsToSelector:aSelector]) + if([_delegate respondsToSelector:anAction]) { - [_delegate performSelector:aSelector withObject:anObject]; + [_delegate performSelector:anAction withObject:anObject]; return YES; }