Re: NSTextField / NSSecureTextField toggl

2013-07-07 Thread Jens Alfke
On Jul 7, 2013, at 5:46 AM, Michael Starke wrote: > I'm somewhat heading down a road of pain with this. Maybe I approach the > problem from the wrong angle, so I wanted to ask for advice. > My goal is to have a NSTextField that can be toggled to display a Password in > clear or bulleted forma

Re: NSTextField / NSSecureTextField toggl

2013-07-07 Thread Mike Abdullah
I reckon this code of mine is what you want: https://github.com/karelia/SecurityInterface/blob/master/README.md Mike. Sent from my iPhone On 7 Jul 2013, at 13:46, Michael Starke wrote: > Hello List, > > I'm somewhat heading down a road of pain with this. Maybe I approach the > problem from

Re: NSTextField / NSSecureTextField toggl

2013-07-07 Thread Michael Starke
Well, turns out you can use NSString's: - (void)enumerateSubstringsInRange:options:usingBlock: Using the NSStringEnumerationByComposedCharacterSequences option, you get the actual character count. But that's just a little bit nearer to the solution, as I'm guessing I need to intervene earlier

NSTextField / NSSecureTextField toggl

2013-07-07 Thread Michael Starke
Hello List, I'm somewhat heading down a road of pain with this. Maybe I approach the problem from the wrong angle, so I wanted to ask for advice. My goal is to have a NSTextField that can be toggled to display a Password in clear or bulleted format. Sort of NSTextField - NSSecureTextField I'm u