Create an NSManagedObject Without Saving?
- by Josh Kahane
I need to make an NSManagedObject without saving it, how can I do this?
I have tried insetting one without a context but the app crashes.
I have tried the following:
GuestInfo *guest;
guest = (GuestInfo *)[NSEntityDescription insertNewObjectForEntityForName:@"GuestInfo" inManagedObjectContext:nil];
This causes the crash with the following error message:
'NSInternalInconsistencyException', reason: '+entityForName: could not locate an NSManagedObjectModel for entity name 'GuestInfo''
This causes the
Hope you can help, thanks.