• 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: controlTextDidChange, backspace possible?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: controlTextDidChange, backspace possible?


  • Subject: Re: controlTextDidChange, backspace possible?
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Tue, 14 Sep 2004 18:00:09 +0200

At 17:22 Uhr +0200 14.09.2004, Ondra Cada wrote:
On 14.9.2004, at 17:07, M. Uli Kusterer wrote:
Length-limiting text entry fields is a common enough problem that I don't get why there isn't a solution built in already.

... I beg to differ. To limit lenght is definitely not a task for a field, and not quite for a formatter, either. If at all, it looks like a controller-level thing: what about exploiting validation?

Could you elaborate?

At the moment I don't have the time to test it, but I think that some combination of a controller-level validator and perhaps a formatter which keeps checking and presents the text in red with a tooltip showing the cause of the problem if it does not validate (like, since it is too long by N chars) would be the way to go.

So, you agree that the formatter would be a good approach, but you would reinforce it by having the controller validate as well?
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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
  • Follow-Ups:
    • Re: controlTextDidChange, backspace possible?
      • From: Ondra Cada <email@hidden>
References: 
 >controlTextDidChange, backspace possible? (From: "Peter Karlsson" <email@hidden>)
 >Re: controlTextDidChange, backspace possible? (From: "M. Uli Kusterer" <email@hidden>)
 >Re: controlTextDidChange, backspace possible? (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: Creating Help for my App.
  • Next by Date: Re: 2 NSTextViews and binding
  • Previous by thread: Re: controlTextDidChange, backspace possible?
  • Next by thread: Re: controlTextDidChange, backspace possible?
  • Index(es):
    • Date
    • Thread