mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-05 02:13:40 +00:00
Performance fix: willChange and didChange for CPArrayController's selectionIndexes were sent doubly.
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user