This is a newbie question for core data as I'm starting dev on ios in swift.
I don't understand the mecanism of core data... How can I manipulate, I mean instantiate entities (managed objects) without "attaching" them to the context ?
Let's say I have an api that returns me a list of cars. I want to parse my api data into a list of Car objects. Now I want to exclude all red cars before doing any db operations.
But if I instantiate my cars as managed object they are directly attached to the context, and so if I call save on it, it will do in all my created entities !
Creating a new car object don't mean I want to do any kind of operation with my database !
NSManagedObjectand save your value into this one. Then, save your context when you have finished to parse the JSON - Jimmy James