Contents

enumeratorForChangeHistoryFetchRequest:error:

Enumerates a change history fetch request.

Declaration

- (CNFetchResult<NSEnumerator<CNChangeHistoryEvent *> *> *) enumeratorForChangeHistoryFetchRequest:(CNChangeHistoryFetchRequest *) request error:(NSError **) error;

Parameters

  • request:

    A description of the events to fetch.

  • error:

    If the fetch fails, contains an Nserror object with more information.

Return Value

An enumerator of the events matching the result, or nil if there was an error.

Discussion

Executes the fetch request and returns an enumerator for the results. This can prevent all events from loading into memory at once. An error that occurs during enumeration may throw an exception.

See Also

Fetching change history info