Instance Method

initWithLeftExpression:rightExpression:modifier:type:options:

Initializes a predicate to a given type formed by combining given left and right expressions using a given modifier and options.

Declaration

- (instancetype)initWithLeftExpression:(NSExpression *)lhs rightExpression:(NSExpression *)rhs modifier:(NSComparisonPredicateModifier)modifier type:(NSPredicateOperatorType)type options:(NSComparisonPredicateOptions)options;

Parameters

lhs

The left hand expression.

rhs

The right hand expression.

modifier

The modifier to apply.

type

The predicate operator type.

options

The options to apply (see NSComparisonPredicateOptions). For no options, pass 0.

Return Value

The receiver, initialized to a predicate of type type formed by combining the left and right expressions using the modifier and options.

See Also

Creating Comparison Predicates

Displaying Searchable Content by Using a Search Controller

Create a user interface with searchable content in a table view.

+ predicateWithLeftExpression:rightExpression:customSelector:

Returns a new predicate formed by combining the left and right expressions using a given selector.

+ predicateWithLeftExpression:rightExpression:modifier:type:options:

Creates and returns a predicate of a given type formed by combining given left and right expressions using a given modifier and options.

- initWithLeftExpression:rightExpression:customSelector:

Initializes a predicate formed by combining given left and right expressions using a given selector.