Fix for placeholder strings showing up as bullets in CPSecureTextField.

Closes #7.

Reviewed by me.
This commit is contained in:
Francisco Ryan Tolmasky I
2009-04-30 16:32:57 -07:00
parent 0f357c24a7
commit 08b4bdada1
+4 -2
View File
@@ -753,10 +753,12 @@ CPTextFieldStatePlaceholder = 1 << 13;
if (_controlState & CPTextFieldStatePlaceholder)
string = [self placeholderString];
else
{
string = [self stringValue];
if ([self isSecure])
string = secureStringForString(string);
if ([self isSecure])
string = secureStringForString(string);
}
[contentView setText:string];