Re: NSSecureTextFieldCell setEchosBullets
Re: NSSecureTextFieldCell setEchosBullets
- Subject: Re: NSSecureTextFieldCell setEchosBullets
- From: Mike Abdullah <email@hidden>
- Date: Wed, 12 Apr 2006 21:44:49 +0100
According to the docs, this method will not display the actual
characters in the password, but will simply display them as
whitespace (although I may simply have misunderstood the wording).
I don't know why nothing is happening with your method, but I
personally would change it to something like this:
[theCell setEchosBullets: ![theCell echosBullets]];
Mike.
On 12 Apr 2006, at 20:11PM, Eric Long wrote:
This seems like it should be obvious, but...
I would like to call the NSSecureTextFieldCell method
setEchosBullets to
toggle the display between normal and bullets according to the user's
choice.
I have a checkbox "Show password". When clicked, it calls an
action method.
Method authenticates the user, then tries this:
----
NSSecureTextFieldCell *theCell = [secureTextField cell];
[theCell setEchosBullets:[theCell echosBullets] == NO];
[secureTextField setNeedsDisplay:YES];
-----
This has no effect. The field remains displaying bullets. If you
type into
the field, bullets continue to appear.
What am I doing wrong here?
Thanks for the help,
Eric
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden