Platforms to show: All Mac Windows Linux Cross-Platform
NSExpressionMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | iCloud | MBS MacCloud Plugin | 11.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Comparison operations in an NSPredicate are based on two expressions, as represented by instances of the NSExpression class. Expressions are created for constant values, key paths, and so on.
Generally, anywhere in the NSExpression class hierarchy where there is composite API and subtypes that may only reasonably respond to a subset of that API, invoking a method that does not make sense for that subtype will cause an exception to be thrown.
See NSException class documentation on apple.com.
- property Handle as Integer
- 11 methods
- method arguments as Variant()
- method constantValue as Variant
- method Constructor(Type as Integer)
- method expressionType as Integer
- method functionName as string
- method keyPath as string
- method leftExpression as NSExpressionMBS
- method operand as NSExpressionMBS
- method predicate as NSPredicateMBS
- method rightExpression as NSExpressionMBS
- method variable as string
- 11 shared methods
- shared method expressionForAggregate(subexpressions() as NSExpressionMBS) as NSExpressionMBS
- shared method expressionForConstantValue(value as Variant) as NSExpressionMBS
- shared method expressionForEvaluatedObject as NSExpressionMBS
- shared method expressionForFunction(FunctionName as string, arguments() as Variant) as NSExpressionMBS
- shared method expressionForIntersectSet(LeftExpression as NSExpressionMBS, rightExpression as NSExpressionMBS) as NSExpressionMBS
- shared method expressionForKeyPath(name as string) as NSExpressionMBS
- shared method expressionForMinusSet(LeftExpression as NSExpressionMBS, rightExpression as NSExpressionMBS) as NSExpressionMBS
- shared method expressionForUnionSet(LeftExpression as NSExpressionMBS, rightExpression as NSExpressionMBS) as NSExpressionMBS
- shared method expressionForVariable(name as string) as NSExpressionMBS
- shared method expressionWithFormat(format as string) as NSExpressionMBS
- shared method expressionWithFormat(format as string, arguments() as Variant) as NSExpressionMBS
- 11 constants
Expression Type Constants
Constant | Value | Description |
---|---|---|
NSAggregateExpressionType | 14 |
An expression that defines an aggregate of NSExpression objects. Available in Mac OS X v10.5 and later. |
NSBlockExpressionType | 19 |
An expression that uses an Block. Available in Mac OS X v10.6 and later. |
NSConstantValueExpressionType | 0 |
An expression that always returns the same value. Available in Mac OS X v10.4 and later. |
NSEvaluatedObjectExpressionType | 1 |
An expression that always returns the parameter object itself. Available in Mac OS X v10.4 and later. |
NSFunctionExpressionType | 4 |
An expression that returns the result of evaluating a function. Available in Mac OS X v10.4 and later. |
NSIntersectSetExpressionType | 6 |
An expression that creates an intersection of the results of two nested expressions. Available in Mac OS X v10.5 and later. |
NSKeyPathExpressionType | 3 |
An expression that returns something that can be used as a key path. Available in Mac OS X v10.4 and later. |
NSMinusSetExpressionType | 7 |
An expression that combines two nested expression results by set subtraction. Available in Mac OS X v10.5 and later. |
NSSubqueryExpressionType | 13 |
An expression that filters a collection using a subpredicate. Available in Mac OS X v10.5 and later. |
NSUnionSetExpressionType | 5 |
An expression that creates a union of the results of two nested expressions. Available in Mac OS X v10.5 and later. |
NSVariableExpressionType | 2 |
An expression that always returns whatever value is associated with the key specified by ‘variable' in the bindings dictionary. Available in Mac OS X v10.4 and later. |
This class has no sub classes.
Some methods using this class:
- NSComparisonPredicateMBS.Constructor(LeftExpression as NSExpressionMBS, rightExpression as NSExpressionMBS, modifier as UInt32, type as UInt32, options as UInt32)
- NSComparisonPredicateMBS.leftExpression as NSExpressionMBS
- NSComparisonPredicateMBS.predicate(LeftExpression as NSExpressionMBS, rightExpression as NSExpressionMBS, modifier as UInt32, type as UInt32, options as UInt32) as NSPredicateMBS
- NSComparisonPredicateMBS.rightExpression as NSExpressionMBS
Blog Entries
The items on this page are in the following plugins: MBS MacCloud Plugin.
NSExceptionMBS - NSFileCoordinatorMBS