• 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: Limit the length of a string in a nstextfield
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: New ML List Software
  • Next by Date: Re: New ML List Software
  • Previous by thread: Re: Limit the length of a string in a nstextfield
  • Next by thread: NSPopAutoreleasePool
  • Index(es):
    • Date
    • Thread