Hide/Show Password

2009-05-14 Thread Patrick Neave
I would like to add a little button next to my apps password field to hide/show the password. I have searched this list but although it has bee mentioned I can find no example of doing this. NSSecureTextField seems to be the way to go but I am not having any luck. Any ideas how I could go

Re: Hide/Show Password

2009-05-14 Thread Frederik Slijkerman
You can't toggle the password behavior in NSSecureTextField, so if you still need to toggle this, you can either create both a regular NSTextField and a NSSecureTextField and hide/show/synchronize them as needed, or recreate the text field with the correct class when needed... Best regards, Fr

Re: Hide/Show Password

2009-05-14 Thread Keary Suska
On May 14, 2009, at 9:40 AM, Patrick Neave wrote: I would like to add a little button next to my apps password field to hide/show the password. I have searched this list but although it has bee mentioned I can find no example of doing this. NSSecureTextField seems to be the way to go but

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, at

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 simpler

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