O'Reilly logo

Sams Teach Yourself Core Data for Mac® and iOS in 24 Hours by Jesse Feiler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Hour 22. Managing Validation

What You’ll Learn in This Hour:

Exploring the validation interface you do not have to write

Performing validations

Validation for Free

Hour 18, “Validating Data,” p. 317, shows you how to set up validation rules in your Core Data model. This is a good start, but you need to apply them to keep your data valid. The whole point of implementing validation rules in the database is to avoid or at least minimize the code you have to write to keep your data clean. Not only does this save time, but it also helps to reduce the possibility of validation code being written incorrectly or of loopholes occurring so that under some circumstances, the validation tests are not even performed.

There are two basic approaches ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required