From 2cf9fdf0d009276013b9e9842eb310e5f6231be1 Mon Sep 17 00:00:00 2001 From: cacaodev Date: Thu, 12 Jul 2012 16:29:01 +0200 Subject: [PATCH] Check for sendsActionOnEndEditing --- AppKit/CPTableView.j | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AppKit/CPTableView.j b/AppKit/CPTableView.j index f403f3905..c4ae1ac97 100644 --- a/AppKit/CPTableView.j +++ b/AppKit/CPTableView.j @@ -3395,7 +3395,7 @@ Your delegate can implement this method to avoid subclassing the tableview to ad If the dataview resigning triggers the action (as CPTextField does), we come right back here and start an infinite loop. So we have to check this flag first. */ - if ([sender isKindOfClass:[CPTextField class]] && _editingCellIndex === nil) + if ([sender respondsToSelector:@selector(sendsActionOnEndEditing)] && [sender sendsActionOnEndEditing] && _editingCellIndex === nil) return; _editingCellIndex = nil;