init(andPredicateWithSubpredicates:)
Returns a new predicate that you form using an AND operation on the predicates in a specified array.
Declaration
init(andPredicateWithSubpredicates subpredicates: [NSPredicate])Parameters
- subpredicates:
An array of
NSPredicateobjects.
Return Value
A new predicate formed by AND-ing the predicates specified by subpredicates.
Discussion
An AND predicate with no subpredicates evaluates to TRUE.
Special Considerations
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
Related Documentation
- Predicate Programming Guide