From dc7e95bbff575812059ac3d3ed96ad07f3353282 Mon Sep 17 00:00:00 2001 From: Aparajita Fishman Date: Sat, 16 Feb 2013 07:45:47 -0500 Subject: [PATCH] Don't set default placeholders --- AppKit/CPTextField.j | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/AppKit/CPTextField.j b/AppKit/CPTextField.j index 1c40f38a1..d833c9900 100644 --- a/AppKit/CPTextField.j +++ b/AppKit/CPTextField.j @@ -1631,24 +1631,6 @@ var CPTextFieldIsEditableKey = "CPTextFieldIsEditableKey", @implementation _CPTextFieldValueBinder : CPBinder -+ (void)_updatePlaceholdersWithOptions:(CPDictionary)options forBinding:(CPBinder)aBinding -{ - var selector = "_updatePlaceholdersWithOptions:", - implementation = class_getMethodImplementation([aBinding superclass], selector); - - implementation.apply(aBinding, [aBinding, selector, options]); - - [aBinding _setPlaceholder:@"Multiple Values" forMarker:CPMultipleValuesMarker isDefault:YES]; - [aBinding _setPlaceholder:@"No Selection" forMarker:CPNoSelectionMarker isDefault:YES]; - [aBinding _setPlaceholder:@"Not Applicable" forMarker:CPNotApplicableMarker isDefault:YES]; - [aBinding _setPlaceholder:@"" forMarker:CPNullMarker isDefault:YES]; -} - -- (void)_updatePlaceholdersWithOptions:(CPDictionary)options forBinding:(CPBinder)aBinding -{ - [[self class] _updatePlaceholdersWithOptions:options forBinding:self]; -} - - (void)setPlaceholderValue:(id)aValue withMarker:(CPString)aMarker forBinding:(CPString)aBinding { [_source setPlaceholderString:aValue]; @@ -1664,11 +1646,6 @@ var CPTextFieldIsEditableKey = "CPTextFieldIsEditableKey", @implementation _CPTextFieldPatternValueBinder : CPValueWithPatternBinding -- (void)_updatePlaceholdersWithOptions:(CPDictionary)options forBinding:(CPBinder)aBinding -{ - [_CPTextFieldValueBinder _updatePlaceholdersWithOptions:options forBinding:self]; -} - - (void)setPlaceholderValue:(id)aValue withMarker:(CPString)aMarker forBinding:(CPString)aBinding { [_source setPlaceholderString:aValue];