Contents

expression(forFetch:context:countOnly:)

Returns an expression which will evaluate to the result of executing a fetch request on a context.

Declaration

class func expression(forFetch fetch: NSExpression, context: NSExpression, countOnly countFlag: Bool) -> NSExpression

Parameters

  • fetch:

    An expression that evaluates to an instance of NSFetchRequest.

  • context:

    An expression that evaluates to an instance of NSManagedObjectContext.

  • countFlag:

    If True, when the new expression is evaluated the managed object context (from context) will perform Count(for:) 93zbm with the fetch request (from fetch). If False, when the new expression is evaluated the managed object context will perform Fetch(_:) 38ys1 with the fetch request.

Return Value

An expression which will evaluate to the result of executing a fetch request (from fetch) on a managed object context (from context).

See Also

Related Documentation

  • Predicate Programming Guide
  • Core Data Programming Guide