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 committed 2011-06-02 23:41:03 -04:00
1 parent 0a9c9741e8
commit 5d01ca428c
2 files changed
+7 -2

No files matched your search

+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