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,
Frederik Slijkerman


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 I am not having any luck.

Any ideas how I could go about implementing this?

Regards,

Patrick


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/fjs%40xs4all.nl

This email sent to f...@xs4all.nl


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to