NSCompoundPredicateMBS methods

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSCompoundPredicateMBS class.

NSCompoundPredicateMBS.compoundPredicateType as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method iCloud MBS MacCloud Plugin 11.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the predicate type for the receiver.

NSCompoundPredicateMBS.Constructor(type as Integer, predicates() as NSPredicateMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method iCloud MBS MacCloud Plugin 11.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the receiver initialized to a given type using predicates from a given array.
Example
dim n1 as NSPredicateMBS = NSPredicateMBS.predicateWithValue(true)
dim n2 as NSPredicateMBS = NSPredicateMBS.predicateWithValue(false)

dim n as NSPredicateMBS = new NSCompoundPredicateMBS(NSCompoundPredicateMBS.kAnd, array(n1,n2))
MsgBox n.predicateFormat

type: The type of the new predicate.
subpredicates: An array of NSPredicate objects.

NSCompoundPredicateMBS.subpredicates as NSPredicateMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method iCloud MBS MacCloud Plugin 11.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the array of the receiver's subpredicates.
Example
dim n1 as NSPredicateMBS = NSPredicateMBS.predicateWithValue(true)
dim n2 as NSPredicateMBS = NSPredicateMBS.predicateWithValue(false)

dim n as new NSCompoundPredicateMBS(NSCompoundPredicateMBS.kAnd, array(n1,n2))

for each x as NSPredicateMBS in n.subpredicates
MsgBox x.predicateFormat
next

The items on this page are in the following plugins: MBS MacCloud Plugin.


💬 Ask a question or report a problem