Fix in CPString setPlaceholderString

[#238 state:resolved]
This commit is contained in:
Ross Boucher committed 2009-03-07 21:05:18 -08:00
1 parent 25c7d98d2c
commit 88035429bb
1 file changed
+3
+3
View File
@@ -708,6 +708,9 @@ var _CPTextFieldSquareBezelColor = nil,
*/
-(void)setPlaceholderString:(CPString)aStringValue
{
if(_placeholderString && [self stringValue] === _placeholderString)
_value = @"";
_placeholderString = aStringValue;
//if there is no set value, automatically display the placeholder