Initializer

init(notPredicateWithSubpredicate:)

Returns a new predicate formed by NOT-ing a given predicate.

Declaration

init(notPredicateWithSubpredicate predicate: NSPredicate)

Parameters

predicate

A predicate.

Return Value

A new predicate formed by NOT-ing the predicate specified by predicate.

Discussion

For applications linked on macOS 10.5 or later, the subpredicates array is copied. For applications linked on OS X v10.4, the subpredicates array is retained (for binary compatibility).

See Also

Constructors

init(andPredicateWithSubpredicates: [NSPredicate])

Returns a new predicate formed by AND-ing the predicates in a given array.

init(orPredicateWithSubpredicates: [NSPredicate])

Returns a new predicate formed by OR-ing the predicates in a given array.

init(type: NSCompoundPredicate.LogicalType, subpredicates: [NSPredicate])

Returns the receiver initialized to a given type using predicates from a given array.