Fixed: CPArrayController's addObject and CPArray's insertObject:inArraySortedByDescriptors:.

CPArray insertObject:inArraySortedByDescriptors: now quickly inserts objects at the end of the array if no sort descriptors are specified.

CPArrayController initialises its sort descriptors to an empty array.

Fixed: array controller's addObject added objects to the arranged objects array in a different order than in the content array if no sort descriptor was set.
This commit is contained in:
Alexander Ljungberg committed 2010-12-14 23:33:14 +01:00
1 parent 2af2fc31a1
commit 8ef7f07195
3 files changed
+42 -11

No files matched your search

+1
View File
@@ -108,6 +108,7 @@
if (self)
{
_sortDescriptors = [CPArray array];
_selectionIndexes = [CPIndexSet indexSet];
}