From 6a689dc3df96cf0c59b3db76166a6be2cea7d0fd Mon Sep 17 00:00:00 2001 From: Nicholas Small Date: Wed, 30 Jun 2010 12:00:20 -0400 Subject: [PATCH] Fix for asking the wrong object for -_replacementKeyPathForBinding: when creating a new binding. --- AppKit/CPKeyValueBinding.j | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AppKit/CPKeyValueBinding.j b/AppKit/CPKeyValueBinding.j index 3aabc98a6..a926cdd2b 100644 --- a/AppKit/CPKeyValueBinding.j +++ b/AppKit/CPKeyValueBinding.j @@ -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