NSSaveChangesRequest Class Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/CoreData.framework
Availability
Available in OS X v10.7 and later.
Declared in
NSSaveChangesRequest.h

Overview

A save changes request encapsulates a collection of changes to be made by an object store in response to a save operation on a managed object context.

Tasks

Initializing a Request

Getting Information About a Request

Instance Methods

deletedObjects

Returns the objects that were deleted in the calling context.

- (NSSet *)deletedObjects;
Return Value

The objects that were deleted in the calling context.

Availability
  • Available in OS X v10.7 and later.
Declared In
NSSaveChangesRequest.h

initWithInsertedObjects:updatedObjects:deletedObjects:lockedObjects:

Initializes a save changes request with collections of given changes.

- (id)initWithInsertedObjects:(NSSet*)insertedObjects updatedObjects:(NSSet*)updatedObjects deletedObjects:(NSSet*)deletedObjects lockedObjects:(NSSet*)lockedObjects
Parameters
insertedObjects

Objects that were inserted into the calling context.

updatedObjects

Objects that were updated in the calling context.

deletedObjects

Objects that were deleted in the calling context.

lockedObjects

Objects that were flagged for optimistic locking on the calling context.

Return Value

A save changes request initialized with the given changes.

Availability
  • Available in OS X v10.7 and later.
Declared In
NSSaveChangesRequest.h

insertedObjects

Returns the objects that were inserted into the calling context.

- (NSSet *)insertedObjects;
Return Value

The objects that were inserted into the calling context.

Availability
  • Available in OS X v10.7 and later.
Declared In
NSSaveChangesRequest.h

lockedObjects

Returns the objects that were flagged for optimistic locking on the calling context.

- (NSSet *)lockedObjects
Return Value

The objects that were flagged for optimistic locking on the calling context.

Discussion

Objects are flagged for optimistic locking with detectConflictsForObject:.

Availability
  • Available in OS X v10.7 and later.
Declared In
NSSaveChangesRequest.h

updatedObjects

Returns the objects that were modified in the calling context.

- (NSSet *)updatedObjects;
Return Value

The objects that were modified in the calling context.

Availability
  • Available in OS X v10.7 and later.
Declared In
NSSaveChangesRequest.h