From 735a38d1344feef8b88c32c4a93df35bb86ea92e Mon Sep 17 00:00:00 2001 From: Brian Donovan Date: Tue, 7 Dec 2010 07:23:30 -0800 Subject: [PATCH] NSPopUpButton has no CPValueBinding, use @"selectedIndex". --- AppKit/CPPopUpButton.j | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/AppKit/CPPopUpButton.j b/AppKit/CPPopUpButton.j index 7c29c19e7..23a70bc6d 100644 --- a/AppKit/CPPopUpButton.j +++ b/AppKit/CPPopUpButton.j @@ -51,7 +51,7 @@ CPPopUpButtonStatePullsDown = CPThemeState("pulls-down"); + (CPSet)keyPathsForValuesAffectingSelectedTag { - return [CPSet setWithObject:CPValueBinding]; + return [CPSet setWithObject:@"selectedIndex"]; } /*! @@ -283,8 +283,6 @@ CPPopUpButtonStatePullsDown = CPThemeState("pulls-down"); if (_selectedIndex == anIndex) return; - [self willChangeValueForKey:CPValueBinding]; - if (_selectedIndex >= 0 && ![self pullsDown]) [[self selectedItem] setState:CPOffState]; @@ -294,8 +292,6 @@ CPPopUpButtonStatePullsDown = CPThemeState("pulls-down"); [[self selectedItem] setState:CPOnState]; [self synchronizeTitleAndSelectedItem]; - - [self didChangeValueForKey:CPValueBinding]; } /*!