Skip to content
terwey edited this page May 4, 2012 · 3 revisions

Some ideas for integrating a validation framework into QuickDialog.

Simple Validation

Validation to meet CoreData models (and probably other types)

Primitive formats

  • Text length
  • Maximum length (also prevent more typing)
  • Minimum length
  • Numeric only
  • int
  • float
  • Alphabetic only
  • Uppercase only
  • Lowercase only

Specific formats

  • Email address
  • URL scheme
  • Should support validating if the URL meets an RFC
  • Perhaps even build it does a quick Reachability check to see if the URL works?

Displaying an error

There are lots of way to show an error however I believe 2 ways are the most used and most appreciated by users.

  • Color the whole cell
  • If it's accepted, color it green* or leave it white (*or whatever color the developer had set)
  • If it's wrong, color it red* (*or whatever color the developer had set)
  • Small icon
  • A small icon at the end of the cell indicating if it's accepted or wrong (checkmark or cross)