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: "Peter Karlsson" <email@hidden>
- Date: Mon, 13 Sep 2004 15:46:31 +0000
I think I will try to make a delegate for my textfield instead. I can then
use that delegate to check for the length limit and also other things. I
have found a example at this url:
http://lists.gnu.org/archive/html/discuss-gnustep/2004-02/msg00112.html
But I have not managed to make a delegate for my textfield yet. Can someone
please explain (step by step) how I do this in IB?
Peter
From: Allan Odgaard <email@hidden>
To: "Peter Karlsson" <email@hidden>
CC: email@hidden
Subject: Re: Limit the length of a string in a nstextfield
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
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
_______________________________________________
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