Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Changeset [b5d0054f948a4fd9d5db70ce3202d6dfc9a30135] by Brian Donovan

Revision b5d0054f948a4fd9d5db70ce3202d6dfc9a30135, committed by Brian Donovan · October 13th, 2010 @ 03:20 PM

-[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.
http://github.com/280north/cappuccino/commit/b5d0054f948a4fd9d5db70...

2 changed files

  • M Foundation/CPIndexSet.j
  • M Tests/Foundation/CPIndexSetTest.j