/* NSSaveChangesRequest.h Core Data Copyright (c) 2004-2023, Apple Inc. All rights reserved. */ #import #import #import NS_ASSUME_NONNULL_BEGIN @class NSPersistentStoreRequest; @class NSManagedObject; API_AVAILABLE(macosx(10.7),ios(5.0)) @interface NSSaveChangesRequest : NSPersistentStoreRequest { } // Default initializer. - (instancetype)initWithInsertedObjects:(nullable NSSet *)insertedObjects updatedObjects:(nullable NSSet *)updatedObjects deletedObjects:(nullable NSSet *)deletedObjects lockedObjects:(nullable NSSet *)lockedObjects; // Objects that were inserted into the calling context. @property (nullable, readonly, strong) NSSet<__kindof NSManagedObject *> *insertedObjects; // Objects that were modified in the calling context. @property (nullable, readonly, strong) NSSet<__kindof NSManagedObject *> *updatedObjects; // Objects that were deleted from the calling context. @property (nullable, readonly, strong) NSSet<__kindof NSManagedObject *> *deletedObjects; // Objects that were flagged for optimistic locking on the calling context via detectConflictsForObject:. @property (nullable, readonly, strong) NSSet<__kindof NSManagedObject *> *lockedObjects; @end NS_ASSUME_NONNULL_END