O'Reilly logo

Core Data for iOS: Developing Data-Driven Applications for the iPad, iPhone, and iPod touch by Tom Harrington, Tim Isted

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

Chapter 7. Working with Predicates

Although predicates are not unique to the Core Data framework, they are such key ingredients to fetch requests that it’s important to have a thorough understanding of predicate syntax. Predicates are the way you specify constraints on what is returned from a fetch request. If you don’t use a predicate, all the objects for a specified entity will be returned.

This chapter begins with the basics of creating an NSPredicate, discussing simple predicate format strings. You’ll learn how to use predicates to match against scalar values like numbers or dates, ...

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