diff --git a/ChangeLog b/ChangeLog index cdd5b1d04..d5f9b04ae 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2014-01-25 Frederik + + * Source/NSKeyValueObserving.m: When using + (NSKeyValueObservingOptionInitial | NSKeyValueObservingOptionNew) + as option for observeValueForKeyPath:ofObject:change:context:, + we should use -valueForKeyPath: instead of -valueForKey: to retrieve + the current (initial) value. + 2014-01-23 Richard Frith-Macdonald * Source/GSFFCallInvocation.m: diff --git a/Source/NSKeyValueObserving.m b/Source/NSKeyValueObserving.m index 89a0360c5..e8957cfc5 100644 --- a/Source/NSKeyValueObserving.m +++ b/Source/NSKeyValueObserving.m @@ -1194,7 +1194,7 @@ cifframe_callback(ffi_cif *cif, void *retp, void **args, void *user) { id value; - value = [instance valueForKey: aPath]; + value = [instance valueForKeyPath: aPath]; if (value == nil) { value = null;