Platforms to show: All Mac Windows Linux Cross-Platform
NSCompoundPredicateMBS class
Super class: NSPredicateMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | iCloud | MBS MacCloud Plugin | 11.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Comparison operations are based on two expressions, as represented by instances of the NSExpression class. Expressions are created for constant values, key paths, and so on.
In Mac OS X v10.5 and later and in iOS, you can use NSCompoundPredicate to create an AND or OR compound predicate (but not a NOT compound predicate) using an array with 0, 1, or more elements:
- An AND predicate with no subpredicates evaluates to TRUE.
- An OR predicate with no subpredicates evaluates to FALSE.
- A compound predicate with one or more subpredicates evaluates to the truth of its subpredicates.
- 3 methods
- method compoundPredicateType as Integer
- method Constructor(type as Integer, predicates() as NSPredicateMBS)
- method subpredicates as NSPredicateMBS()
- 3 shared methods
- shared method andPredicateWithSubpredicates(predicates() as NSPredicateMBS) as NSPredicateMBS
- shared method notPredicateWithSubpredicate(predicate as NSPredicateMBS) as NSPredicateMBS
- shared method orPredicateWithSubpredicates(predicates() as NSPredicateMBS) as NSPredicateMBS
- 3 constants
Compound Predicate Types
Constant | Value | Description |
---|---|---|
kAnd | 1 |
A logical AND predicate. |
kNot | 0 |
A logical NOT predicate. |
kOR | 2 |
A logical OR predicate. |
Super class NSPredicateMBS
- property Handle as Integer
- 6 methods
- method Constructor(predicateFormat as string)
- method Constructor(predicateFormat as string, arguments() as Variant)
- method Constructor(value as boolean)
- method description as string
- method predicateFormat as string
- method Print
- 3 shared methods
- shared method predicateWithFormat(predicateFormat as string) as NSPredicateMBS
- shared method predicateWithFormat(predicateFormat as string, arguments() as Variant) as NSPredicateMBS
- shared method predicateWithValue(value as boolean) as NSPredicateMBS
This class has no sub classes.
Some examples using this class:
Blog Entries
The items on this page are in the following plugins: MBS MacCloud Plugin.
NSComparisonPredicateMBS - NSControlMBS