• 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: Can I Hide / Show an NSTextField / NSSecureTextField in Cocoa?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can I Hide / Show an NSTextField / NSSecureTextField in Cocoa?


  • Subject: Re: Can I Hide / Show an NSTextField / NSSecureTextField in Cocoa?
  • From: Uli Kusterer <email@hidden>
  • Date: Sat, 08 Feb 2014 15:58:15 +0100

On 08 Feb 2014, at 14:37, David Delmonte <email@hidden> wrote:
> On Feb 7, 2014, at 7:44 PM, Kyle Sluder <email@hidden> wrote:
>> On Fri, Feb 7, 2014, at 04:27 PM, David Delmonte wrote:
>>> Hi, Is there a way to turn secureTextField on and off in Cocoa?  I'd like
>>> users to have the option to see their passwords.
>>> In iOS, I can do something like [textField setSecureTextEntry:YES];
>>>
>>> I found [secureTextField setEchoBullets] but that's not what I want.
>>
>> No. You'll have to swap between instances of NSTextField and
>> NSSecureTextField, keeping the two controls' stringValues in sync.
>  I realized I could do this: 1. use just an NSTextField, and 2. if (hiding) textField.stringValue = @"******";
> Is there something I'm missing?

How will you get whatever string the user entered into the field if you replace it with bullets (I hope you plan to use bullets, not asterisks)? What if the user selects the first character and replaces it with a new one? Have you thought about international character sets like Japanese or Hebrew?

Cheers,
-- Uli Kusterer
“The Witnesses of TeachText are everywhere...”
http://zathras.de


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden


References: 
 >Can I Hide / Show an NSTextField / NSSecureTextField in Cocoa? (From: David Delmonte <email@hidden>)
 >Re: Can I Hide / Show an NSTextField / NSSecureTextField in Cocoa? (From: Kyle Sluder <email@hidden>)
 >Re: Can I Hide / Show an NSTextField / NSSecureTextField in Cocoa? (From: David Delmonte <email@hidden>)

  • Prev by Date: Re: Can I Hide / Show an NSTextField / NSSecureTextField in Cocoa?
  • Next by Date: Re: Can I Hide / Show an NSTextField / NSSecureTextField in Cocoa?
  • Previous by thread: Re: Can I Hide / Show an NSTextField / NSSecureTextField in Cocoa?
  • Next by thread: Re: Can I Hide / Show an NSTextField / NSSecureTextField in Cocoa?
  • Index(es):
    • Date
    • Thread