46 + (Class)_binderClassForBinding:(
CPString)theBinding
49 return [_CPCheckBoxValueBinder class];
51 return [
super _binderClassForBinding:theBinding];
54 - (id)initWithFrame:(CGRect)aFrame
75 var count = objects.length,
106 - (BOOL)startTrackingAt:(CGPoint)aPoint
110 return startedTracking;
114 @implementation _CPCheckBoxValueBinder :
CPBinder
119 - (void)_updatePlaceholdersWithOptions:(
CPDictionary)options
121 [
super _updatePlaceholdersWithOptions:options];
123 [
self _setPlaceholder:CPMixedState forMarker:CPMultipleValuesMarker isDefault:YES];
124 [
self _setPlaceholder:CPOffState forMarker:CPNoSelectionMarker isDefault:YES];
125 [
self _setPlaceholder:CPOffState forMarker:CPNotApplicableMarker isDefault:YES];
126 [
self _setPlaceholder:CPOffState forMarker:CPNullMarker isDefault:YES];
129 - (void)setPlaceholderValue:(
id)aValue withMarker:(
CPString)aMarker forBinding:(
CPString)aBinding
131 [_source setAllowsMixedState:(aValue === CPMixedState)];
132 [_source setState:aValue];
135 - (void)setValue:(
id)aValue forBinding:(
CPString)aBinding
137 [_source setState:aValue];