From 08b4bdada1f4b3646f9f34eafe4dcd0fbe4e6665 Mon Sep 17 00:00:00 2001 From: Francisco Ryan Tolmasky I Date: Thu, 30 Apr 2009 16:32:57 -0700 Subject: [PATCH] Fix for placeholder strings showing up as bullets in CPSecureTextField. Closes #7. Reviewed by me. --- AppKit/CPTextField.j | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/AppKit/CPTextField.j b/AppKit/CPTextField.j index bcaf0f6d6..c4b1cce17 100644 --- a/AppKit/CPTextField.j +++ b/AppKit/CPTextField.j @@ -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];