From ec032cb739aedca53036cd14297219293963cf98 Mon Sep 17 00:00:00 2001 From: Alexander Ljungberg Date: Sat, 13 Feb 2010 23:05:55 -0300 Subject: [PATCH] Performance fix: willChange and didChange for CPArrayController's selectionIndexes were sent doubly. --- AppKit/CPArrayController.j | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/AppKit/CPArrayController.j b/AppKit/CPArrayController.j index ed13c1e73..5b7db2a68 100644 --- a/AppKit/CPArrayController.j +++ b/AppKit/CPArrayController.j @@ -91,6 +91,16 @@ return [CPSet setWithObjects:"selectionIndexes"]; } ++ (BOOL)automaticallyNotifiesObserversForKey:(CPString)aKey +{ + if (![super automaticallyNotifiesObserversForKey:aKey]) + return NO; + if (aKey === @"selectionIndexes") + return NO; + + return YES; +} + - (id)init { self = [super init];