Changeset [b5d0054f948a4fd9d5db70ce3202d6dfc9a30135] 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...

Committed by Brian Donovan

  • M Foundation/CPIndexSet.j
  • M Tests/Foundation/CPIndexSetTest.j
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Cappuccino Web Framework, including AppKit, Foundation, and Objective-J.

Shared Ticket Bins