Class

NSFetchRequestExpression

Instances of NSFetchRequestExpression represent expressions which evaluate to the result of executing a fetch request on a managed object context.

Overview

NSFetchRequestExpression inherits from NSExpression, which provides most of the basic behavior. The first argument must be an expression which evaluates to an NSFetchRequest object, and the second must be an expression which evaluates to an NSManagedObjectContext object. If you simply want the count for the request, the countOnly argument should be true.

Symbols

Creating a Fetch Request Expression

class func expression(forFetch: NSExpression, context: NSExpression, countOnly: Bool)

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

Examining a Fetch Request Expression

var requestExpression: NSExpression

The expression for the receiver’s fetch request.

var contextExpression: NSExpression

The expression for the receiver’s managed object context.

var isCountOnlyRequest: Bool

Returns a Boolean value that indicates whether the receiver represents a count-only fetch request.

Constants

Fetch request expression type

This constant specifies the fetch request expression type.

Relationships

Inherits From

Conforms To