From 7a5280558766680211dd1b487f44430465079ebf Mon Sep 17 00:00:00 2001 From: Randall Luecke Date: Mon, 30 May 2011 22:16:38 -0700 Subject: [PATCH 1/2] Support for setContinuous in CPLevelIndicator --- AppKit/CPLevelIndicator.j | 3 +++ Tools/nib2cib/NSLevelIndicator.j | 1 + 2 files changed, 4 insertions(+) diff --git a/AppKit/CPLevelIndicator.j b/AppKit/CPLevelIndicator.j index d7b2fda08..39e3b1408 100644 --- a/AppKit/CPLevelIndicator.j +++ b/AppKit/CPLevelIndicator.j @@ -279,6 +279,9 @@ var _CPLevelIndicatorBezelColor = nil, // Track the mouse to support click and slide value editing. _isTracking = YES; [CPApp setTarget:self selector:@selector(_trackMouse:) forNextEventMatchingMask:CPLeftMouseDraggedMask | CPLeftMouseUpMask untilDate:nil inMode:nil dequeue:YES]; + + if ([self isContinuous]) + [self sendAction:[self action] to:[self target]]; } else if (_isTracking) { diff --git a/Tools/nib2cib/NSLevelIndicator.j b/Tools/nib2cib/NSLevelIndicator.j index 172915429..159691c26 100644 --- a/Tools/nib2cib/NSLevelIndicator.j +++ b/Tools/nib2cib/NSLevelIndicator.j @@ -58,6 +58,7 @@ _numberOfMajorTickMarks = [cell numberOfMajorTickMarks]; [self setEditable:[cell isEditable]]; + [self setContinuous:[cell isContinuous]]; return self; } From 2887d4224c82036b300f43c37a541144f594d621 Mon Sep 17 00:00:00 2001 From: Randall Luecke Date: Mon, 30 May 2011 23:08:41 -0700 Subject: [PATCH 2/2] Remove empty setThemeState method in CPTableView --- AppKit/CPTableView.j | 7 ------- 1 file changed, 7 deletions(-) diff --git a/AppKit/CPTableView.j b/AppKit/CPTableView.j index 6a5a52991..8e4e25c56 100644 --- a/AppKit/CPTableView.j +++ b/AppKit/CPTableView.j @@ -662,13 +662,6 @@ NOT YET IMPLEMENTED [self reloadData]; } -/*! - @ignore -*/ -- (void)setThemeState:(int)aState -{ -} - /*! Returns the intercell spacing in a CGSize object. */