• 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: 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


References: 
 >Limit the length of a string in a nstextfield (From: "Peter Karlsson" <email@hidden>)

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