Ross Boucher
74bedf6dcd
Add a missing import to the ArrayController test.
2010-10-13 18:39:46 -07:00
Klaas Pieter Annema
c9e0ab654f
test observations during setSelectionIndexes
2010-09-23 10:59:00 +02:00
Alexander Ljungberg
e704d42adb
Fixed: if CPArrayController setPreserveSelection was off and a selected item disappeared, an invalid selection state could occur. The error was caused by a slightly overeager early-out optimisation in __setSelectionIndexes.
2010-09-04 22:12:08 -04:00
Alexander Ljungberg
febdf4092e
New implementation of change notifications from CPArrayController.
...
It is crucial that we send notification only before and after complete changes. In the middle notifications might cause observers to see or react to inconsistent data (e.g. selection indexes pointing to rows no longer present). Added some unit tests - more might be needed in the future. Fixed: before and after values when observing array controller key paths during content changes or rearranges were wrong. Fixed: the array controller sent out multiple redundant change notifications.
2010-08-23 18:53:29 -04:00
Alexander Ljungberg
bcb22c7e46
Remove debug output from CPArrayControllerTest.
2010-08-13 14:28:25 -04:00
Alexander Ljungberg
0683b46239
Since issue #795 has not been decided on yet, make CPArrayControllerTest pass without those changes at this time.
2010-08-13 14:18:25 -04:00
Alexander Ljungberg
61ccc39f81
Merge remote branch 'klaaspieter/fix/794-cparraycontroller-preserveselection'
...
Conflicts:
Tests/AppKit/CPArrayControllerTest.j
2010-08-13 14:06:35 -04:00
Klaas Pieter Annema
ff98a9be5a
fix preserve selection in removeObjects and added unit test
2010-07-28 15:02:48 +02:00
Klaas Pieter Annema
75ceeffab8
remove commented code from CPArrayControllerTest
2010-07-28 13:28:53 +02:00
Klaas Pieter Annema
48a5d55af7
fix CPArrayController selectPrevious: and selectNext:
...
Also added unit-tests for canSelectPrevious, canSelectNext, selectPrevious: and selectNext:
2010-07-27 09:10:41 +02:00
Klaas Pieter Annema
bb3c08ce0b
add CPArrayController test
2010-07-26 14:04:26 +02:00