Fix for asking the wrong object for -_replacementKeyPathForBinding: when creating a new binding.

This commit is contained in:
Nicholas Small
2010-06-30 12:00:20 -04:00
parent f34775b038
commit 6a689dc3df
+1 -1
View File
@@ -263,7 +263,7 @@ var CPBindingOperationAnd = 0,
// CPLog.warn("No binding exposed on "+self+" for "+aBinding);
[self unbind:aBinding];
[[CPKeyValueBinding alloc] initWithBinding:[anObject _replacementKeyPathForBinding:aBinding] name:aBinding to:anObject keyPath:aKeyPath options:options from:self];
[[CPKeyValueBinding alloc] initWithBinding:[self _replacementKeyPathForBinding:aBinding] name:aBinding to:anObject keyPath:aKeyPath options:options from:self];
}
- (CPDictionary)infoForBinding:(CPString)aBinding