title: Distinguishing between objects fetched from the in-memory Managed Object Context and the Persistent Store
body: <p>In an iOS app, I am creating <code>NSManagedObject</code> subclass objects using a framework that parses JSON objects and then inserts them into an <code>NSManagedObjectContext</code>. However, I want to distinguish between those newly created objects and ones that have already been saved into the persistent store. That's because I may need to update or overwrite some of the objects in the store. When I execute an <code>NSFetchRequest</code>, it simply returns all of the registered objects, both objects fetched from the store, and the ones I've created locally, in-memory. How would I be able to distinguish between the two types of objects?</p>