views:

64

answers:

2

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
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
Are you sure you connected the outlet to it? Easy thing to forget.
Peter Hosey