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 [0ce115bc9c44199ce52510e445ebce030d92431d] by Brian Donovan

Revision 0ce115bc9c44199ce52510e445ebce030d92431d, committed 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...

2 changed files

  • A Tests/AppKit/CPKeyValueObservingTest.j
  • M Foundation/CPKeyValueObserving.j