Re: Having NSSecureTextField display the hidden text
Re: Having NSSecureTextField display the hidden text
- Subject: Re: Having NSSecureTextField display the hidden text
- From: Ryan Stevens <email@hidden>
- Date: Mon, 17 Jan 2005 07:18:30 -0800
On Jan 17, 2005, at 5:17 AM, Tim Hewett wrote:
Hi,
Is there a way to tell a NSSecureTextField to display its text as
if it were an ordinary NSTextField, i.e. not as bullets but the real
text the bullets represent? And then to tell it to revert back to
bullets later? The class seems to have hidden methods of
_disableSecurity: and _enableSecurity: but these don't seem to
give any change when called.
I'd prefer not to have to go through the full process of creating
a NSTextField from the contents of a secure one and swapping
it in place of the secure one, seems too complex for what needs
to be achieved.
I would subclass NSSecureTextFieldCell and override the drawing
methods. If (insecure) draw the text yourself (with a temp
NSTextFieldCell, perhaps) and return else let super draw.
...Off the top of my head.
_______________________________________________
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