• 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: Validate a user entry
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Validate a user entry


  • Subject: Re: Validate a user entry
  • From: "Craig S. Cottingham" <email@hidden>
  • Date: Wed, 19 Dec 2001 08:33:51 -0600

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday, December 18, 2001, at 10:58 , Michhle Garoche wrote:

In Travel Advisor in Learning Cocoa, there is a field validation implemented as follow:

...

It works only (not surprisingly) when the user enters a value in the field.

Should I implement a second method so that it works also when the user tabs through the field without entering a value. Which method and how to implement it ?

And a third one when the user adds the record (in case he did not even go into the field). Again which method and how to implement it.

In my opinion, validation of user input should be performed most, if not all, of the time on commit only. Users should be free to noodle around in the input form as much as they want, until they are ready to change the state of the data. Validation on field exit forces the user to stop thinking about whatever it was he or she was thinking about and pay attention to the application.

Just my two cents.

- --
Craig S. Cottingham
email@hidden
PGP key available from: <http://pgp.ai.mit.edu:11371/pks/lookup?op=get&search=0xA2FFBE41>
ID=0xA2FFBE41, fingerprint=6AA8 2E28 2404 8A95 B8FC 7EFC 136F 0CEF A2FF BE41
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (Darwin)
Comment: For info see http://www.gnupg.org

iD8DBQE8IKVVE28M76L/vkERAnIlAJ9pmKip3aKwhGotzPW4QejuwxFEIgCg3/sw
M2YSfhuMmILdpLNWMRl8suU=
=aSF2
-----END PGP SIGNATURE-----


References: 
 >Validate a user entry (From: Michèle Garoche <email@hidden>)

  • Prev by Date: Re: customizing TextView keyboard responses
  • Next by Date: Re: Validate a user entry
  • Previous by thread: Validate a user entry
  • Next by thread: Re: Validate a user entry
  • Index(es):
    • Date
    • Thread