The set of objects that will be removed from their persistent store during the next save operation.
- iOS 3.0+
- macOS 10.4+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
- Core Data
The returned set does not necessarily include all the objects that have been deleted (using
delete)—if an object has been inserted and deleted without an intervening save operation, it may not be included in the set.
A managed object context does not post key-value observing notifications when the return value of
deleted changes. A context does, however, post a
NSManaged notification when a change is made, and a
NSManaged notification and a
NSManaged notification before and after changes are committed respectively (although again the set of deleted objects given for an
NSManaged does not include objects that were inserted and deleted without an intervening save operation—that is, they had never been saved to a persistent store).