• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Having NSSecureTextField display the hidden text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Having NSSecureTextField display the hidden text (From: Tim Hewett <email@hidden>)

  • Prev by Date: Re: Definition of Nil and nil was: NSData testing for NULL [SOLVED]
  • Next by Date: Re: Definition of Nil and nil was: NSData testing for NULL [SOLVED]
  • Previous by thread: Having NSSecureTextField display the hidden text
  • Next by thread: Encoding
  • Index(es):
    • Date
    • Thread