Changeset [0ce115bc9c44199ce52510e445ebce030d92431d] by Brian Donovan

October 5th, 2010 @ 04:45 AM

Ensure observeValueForKeyPath:ofObject:change:context is called consistently.

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.
https://github.com/280north/cappuccino/commit/0ce115bc9c44199ce5251...

Committed by Brian Donovan

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