I couldn’t find anything about this topic. I have NSManagedObjects that I don’t use insertNewObject… I use alloc init, and then add them to array sort them alphabetically, and then I want to add them to entities and save the context. Any ideas on how to add them to entities, without making entirely new objects?
I couldn’t find anything about this topic. I have NSManagedObjects that I don’t use
Share
This may be more proper as a comment, but it is, in fact, the answer.
Do not do that. First, read the documentation, then use the API as directed.
Directly from the documentation for
NSManagedObject:Then, from the documentation for
initWithEntity:insertIntoManagedObjectContext:Note, that the above statement is actually highlighted in an attention-getting box in the documentation.