Class

NSFetchRequestExpression

An expression that evaluates the result of a fetch request on a managed object context.

Declaration

@interface NSFetchRequestExpression : NSExpression

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 YES.

Topics

Creating a Fetch Request Expression

+ expressionForFetch:context:countOnly:

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

Examining a Fetch Request Expression

requestExpression

The expression for the receiver’s fetch request.

contextExpression

The expression for the receiver’s managed object context.

countOnlyRequest

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

Constants

NSFetchRequestExpressionType

This constant specifies the fetch request expression type.

Relationships

Inherits From

See Also

Specifying Fetch Constraints

predicate

The predicate of the fetch request.

fetchLimit

The fetch limit of the fetch request.

fetchOffset

The fetch offset of the fetch request.

fetchBatchSize

The batch size of the objects specified in the fetch request.

affectedStores

An array of persistent stores specified for the fetch request.

NSExpressionDescription

A special property description type intended for use with a fetch request.

NSFetchedPropertyDescription

A description object used to define which properties are fetched from Core Data.