Merge pull request #1410 from vhbit/master

Fixed a bug when changing selection in CPPopUpButton wasn't propagated back to bound object
This commit is contained in:
Randy Luecke committed 2011-12-10 20:22:02 -08:00
commit 80f5ab09f3
1 file changed
+10
+10
View File
@@ -776,6 +776,16 @@ CPPopUpButtonStatePullsDown = CPThemeState("pulls-down");
[[self selectedItem] setState:CPOffState];
}
- (void)_reverseSetBinding
{
var binderClass = [[self class] _binderClassForBinding:CPSelectedIndexBinding],
theBinding = [binderClass getBinding:CPSelectedIndexBinding forObject:self];
[theBinding reverseSetValueFor:@"objectValue"];
[super _reverseSetBinding];
}
@end
var DEPRECATED_CPPopUpButtonMenuKey = @"CPPopUpButtonMenuKey",