When it comes to persisting data with Core Data
. What is the best way to persist the data?
For example:
I have an object
Pessoa
(subclass ofNSObject
). And at the time of persistence I "convert"PessoaMO
(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 NSManagedObject
without having the class Pessoa
(subclass of NSObject
)?