Performance fix: willChange and didChange for CPArrayController's selectionIndexes were sent doubly.

This commit is contained in:
Alexander Ljungberg
2010-05-26 19:40:24 -04:00
parent 2b287a85e5
commit ec032cb739
+10
View File
@@ -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];