I have a password dialog that uses NSSecureTextField and I want to include a "Show password" checkbox so I can show the password being typed in clear text.
+1
A:
Create an NSTextField in the same location with the same properties. When the checkbox is checked, change focus, copy current value, and hide and show the appropriate text field. The obvious 'setBulleted:' method does not exist.
drawnonward
2010-04-21 05:16:42
A:
Copying works for the case of going from the secure field to the unsecure field, but going from the unsecure field to the secure field doesn't work: setStringValue: seems to have no effect on the secure field.
Mike
2010-04-21 21:28:45
Are you sure you connected the outlet to it? Easy thing to forget.
Peter Hosey
2010-04-23 01:59:24