Creating PredicatesThere are three ways to create a predicate in Cocoa: using a format string, directly in code, and from a predicate template. Creating a Predicate Using a Format StringYou can use NSPredicate class methods of the form predicateWithFormat… to create a predicate directly from a string. You define the predicate as a string, optionally using variable substitution. At runtime, variabl