Optimise CPArrayController insertObject:atArrangedObjectIndex: by not attempting to arrange the content array. The given index is only meant for the arrangedObjects.

This commit is contained in:
Alexander Ljungberg
2011-06-02 23:41:03 -04:00
parent 0a9c9741e8
commit 5d01ca428c
2 changed files with 7 additions and 2 deletions
+1
View File
@@ -80,6 +80,7 @@
[arrayController insertObject:object atArrangedObjectIndex:1];
[self assert:object equals:[[arrayController arrangedObjects] objectAtIndex:1]];
[self assertTrue:[[arrayController content] containsObject:object] message:@"object should be inserted into content"];
}
- (void)testAddObjectUpdatesArrangedObjectsWithoutSortDescriptors