Re: Limit the length of a string in a nstextfield
Re: Limit the length of a string in a nstextfield
- Subject: Re: Limit the length of a string in a nstextfield
- From: Allan Odgaard <email@hidden>
- Date: Mon, 13 Sep 2004 11:20:15 +0200
On 13. Sep 2004, at 11:06, Peter Karlsson wrote:
I wonder if someone can tell me the easiest way to limit the length of
a string in a nstextfield? Is subclassing the way to go?
Maybe you can use bindings and key/value validation (haven't tried it).
But if you allow arbitrary length-limited strings, remember that
Unicode can have non-spacing characters, like in the word Résumé, which
contain 10 code "characters" (at least in the decomposed form).
--
http://macromates.com/ ::: TextMate, OS X text editor
http://macromates.com/sigpipe/ ::: Personal weblog about
programming
_______________________________________________
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