2
When it comes to persisting the data with the Core Data
. What is the best way to persist the data?
For example:
I own an object
Pessoa
(subclass ofNSObject
). And at the time of persistence I "convert" thePessoaMO
(subclass ofNSManagedObject
).
What I wanted to know is basically the following:
The correct way to do this, is like the example quoted above or directly with the NSManagedObject
without having the class Pessoa
(subclass of NSObject
)?
http://meta.pt.stackoverflow.com/a/1911/101
– Maniero
You only need the class that derives from Nsmanagedobject. Whatever you touch it will automatically be saved. Unless you really need a temporary copy of the object to work with for a while without saving, which is not common.
– rdprado