don't reverse set binding if textfield is showing a bindings placeholder

This commit is contained in:
Klaas Pieter Annema committed 2010-09-23 10:35:42 +02:00
1 parent e59f20668b
commit d8c0d2da8e
1 file changed
+9
+9
View File
@@ -714,6 +714,15 @@ CPTextFieldStatePlaceholder = CPThemeState("placeholder");
[[CPNotificationCenter defaultCenter] postNotification:note];
}
- (void)sendAction:(SEL)anAction to:(id)anObject
{
// Don't reverse set our empty value
if (!_currentValueIsPlaceholder)
[self _reverseSetBinding];
[CPApp sendAction:anAction to:anObject from:self];
}
/*!
Returns the string the text field.
*/