Brian Donovan and Ross Boucher
b5d0054f94
-[CPIndexSet shiftIndexesStartingAtIndex:by:] did not properly adjust count.
...
When clipping a range (i.e. some or all of it went below the lower bound) as a result of
calling shiftIndexesStartingAtIndex:by: with a negative delta, the CPIndexSet did not adjust
the index count, which caused calls to -lastIndex to fail.
This caused -[CPArrayController removeObject:] to fail when the object removed was at index 0.
2010-10-13 18:20:20 -07:00
Alexander Ljungberg
6afe22f351
Merge remote branch 'klaaspieter/fix/784-cparraycontroller-selection'
2010-08-13 14:00:27 -04:00
Francisco Ryan Tolmasky I
cea663f4eb
Fix for isEqual: not being implemented in CPIndexSet.
...
Closes #785 .
Reviewed by rossco.
2010-07-28 16:17:54 -07:00
Aparajita Fishman and Ross Boucher
8ecac8d03c
Fix and test case for issue #746
2010-07-28 16:12:02 -07:00
Klaas Pieter Annema
6b132c4d3b
added check for nil in CPIndexSet isEqual
2010-06-30 11:15:38 +02:00
Klaas Pieter Annema
10df31cbf9
made isEqual: work on CPIndexSet and updated unit tests
2010-06-22 07:47:30 +02:00
Andrew Burkhalter and Ross Boucher
dc9d79bc3d
Adding failing test demonstrating that CPIndexSet throws with negative delta (e.g. shifting indexes at starting point upwards). Simple downward shift example included and working successfully.
...
Misc method reorganization with test suite so it's a bit more intuitive.
2010-03-12 18:50:35 -08:00
aburkhalter and tlrobinson
deed92cff7
Toll-free bridge Error to CPException. Add rhinoException in objj_exception for better error reporting.
2009-12-19 03:49:22 -08:00
Francisco Ryan Tolmasky I
3b761ec55e
Fixed a bug in the new CPIndexSet when adding indexes to the back of the set. Also added a test to handle this case. Also moved Table visual tests into Tests/ folder.
...
Reviewed by me.
2009-08-22 02:51:37 -07:00
Francisco Ryan Tolmasky I
1fecae3dc0
Further improvements to tableview, and reimplemented getIndexes: for CPIndexSet to match the new architecture.
...
Reviewed by me.
2009-06-23 10:51:16 -07:00
Francisco Ryan Tolmasky I
bd07054a1b
Fix for removeIndex in CPIndexSet and added tests for CPIndexSet.
...
Reviewed by me.
2009-06-21 20:25:29 -07:00