Type Method

predicateWithValue:

Creates and returns a predicate that always evaluates to a given Boolean value.

Declaration

+ (NSPredicate *)predicateWithValue:(BOOL)value;

Parameters

value

The Boolean value to which the new predicate should evaluate.

Return Value

A predicate that always evaluates to value.

See Also

Creating a Predicate

+ predicateWithFormat:

Creates and returns a new predicate formed by creating a new string with a given format and parsing the result.

+ predicateWithFormat:argumentArray:

Initializes a predicate by substituting the values in a given array into a format string and parsing the result.

+ predicateWithFormat:arguments:

Initializes a predicate by substituting the values in an argument list into a format string and parsing the result.

- predicateWithSubstitutionVariables:

Returns a copy of the predicate with the predicate's variables substituted by values specified in a given substitution variables dictionary.

+ predicateWithBlock:

Initializes a predicate that evaluates using a specified block object and bindings dictionary.

+ predicateFromMetadataQueryString:

Initializes a predicate with a metadata query string.