Instance Property

predicate

The search criteria to use when matching records.

Declaration

@property(nonatomic, readonly, copy) NSPredicate *predicate;

Discussion

A predicate contains one or more expressions that evaluate to true or false. Expressions are often value-based comparisons, but predicates support other types of operators, including string comparisons and aggregate operations. For guidelines on how to construct predicates for your queries, see Predicate Rules for Query Objects.

This property is set at initialization time and cannot be changed later.

See Also

Accessing the Query Parameters

recordType

The record type to search.

sortDescriptors

The sort descriptors to use when organizing the query results.