mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-26 05:27:03 +00:00
During the "normal" callback for new and old values, the ofObject: parameter passed to the observer is the original receiver of the addObserver:forKeyPath:options:context: call, but that isn't the case with the call caused by the CPKeyValueObservingOptionInitial option. This commit uses _targetObject, the receiver of the addObserver:... call, rather than self, the _CPKVOProxy.
Requires objj be installed, as well as ojunit, located at http://github.com/280north/ojunit
Run individual tests using a command similar to the following:
objj ojunit/OJTestRunnerText.j cappuccino/Tests/Foundation/CPDateTest.j