Hide / show password in NSTextField / NSSecureTextField

2008-12-02 Thread Helder da Rocha
Hi! Does anybody know if there is a simple way to turn on/off the characters displayed in a Secure text Field? I didn't find any melhod in NSTextField or NSSecureTextField that does that. I would like to show bullets by default in a password box, but I offer a checkbox where the user can

Re: Hide / show password in NSTextField / NSSecureTextField

2008-12-02 Thread Helder da Rocha
Yes. I tried that. But it doens't show the characters. It simply toggles from showing nothing to showing bullets. I want to toggle from showing characters to showing bullets (I want to reveal what's under the bullets - it's a long passphrase and easy to mispell) Helder. On Dec 2, 2008,

Re: Hide / show password in NSTextField / NSSecureTextField

2008-12-02 Thread Andre Masse
You could use a secure and plain text field bound to the same value and hide/show one as needed. Andre Masse On Dec 2, 2008, at 11:26, Helder da Rocha wrote: Yes. I tried that. But it doens't show the characters. It simply toggles from showing nothing to showing bullets. I want to toggle

Re: Hide / show password in NSTextField / NSSecureTextField

2008-12-02 Thread Helder da Rocha
Hi Andre, That's what I ended up doing, but I thought it was a clumsy solution. It seems to me that to create two visual input objects with the same dimensions in the same position to handle the same information is at least unnecessary duplication. I was hoping there would be some

Re: Hide / show password in NSTextField / NSSecureTextField

2008-12-02 Thread Michael Ash
On Tue, Dec 2, 2008 at 4:10 PM, Helder da Rocha [EMAIL PROTECTED] wrote: Hi Andre, That's what I ended up doing, but I thought it was a clumsy solution. It seems to me that to create two visual input objects with the same dimensions in the same position to handle the same information is at