Changeset [febdf4092e9e18298330013386e3cc8d7e450a1b] by Alexander Ljungberg

August 23rd, 2010 @ 12:53 PM

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

Committed by Alexander Ljungberg

  • M AppKit/CPArrayController.j
  • M Foundation/CPKeyValueObserving.j
  • M Tests/AppKit/CPArrayControllerTest.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