MonobjcMonobjc Documented Class Library
ExpressionForSubqueryUsingIteratorVariablePredicate Method (expression, variable, predicate)
NamespacesMonobjc.FoundationNSExpressionExpressionForSubqueryUsingIteratorVariablePredicate(NSExpression, NSString, Id)

Returns an expression that filters a collection by storing elements in the collection in a given variable and keeping the elements for which qualifier returns true.

Original signature is '+ (NSExpression *)expressionForSubquery:(NSExpression *)expression usingIteratorVariable:(NSString *)variable predicate:(id)predicate'

Available in Mac OS X v10.5 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSExpression ExpressionForSubqueryUsingIteratorVariablePredicate(
	NSExpression expression,
	NSString variable,
	Id predicate
)
Public Shared Function ExpressionForSubqueryUsingIteratorVariablePredicate ( _
	expression As NSExpression, _
	variable As NSString, _
	predicate As Id _
) As NSExpression
public:
static NSExpression^ ExpressionForSubqueryUsingIteratorVariablePredicate(
	NSExpression^ expression, 
	NSString^ variable, 
	Id^ predicate
)
Parameters
expression (NSExpression)
A predicate expression that evaluates to a collection.
variable (NSString)
Used as a local variable, and will shadow any instances of variable in the bindings dictionary. The variable is removed or the old value replaced once evaluation completes.
predicate (Id)
The predicate used to determine whether the element belongs in the result collection.
Return Value
An expression that filters a collection by storing elements in the collection in the variable variable and keeping the elements for which qualifier returns true
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)