Core Data - insertNewObjectForEntityForName debug
Posted
by Snow Crash
on Stack Overflow
See other posts from Stack Overflow
or by Snow Crash
Published on 2010-06-01T08:20:55Z
Indexed on
2010/06/01
8:23 UTC
Read the original article
Hit count: 181
core-data
I'm trying to figure out why insertNewObjectForEntityForName is not working. I assume it's something to do with my data model but can't be sure. Xcode does not report any errors nor does it crash. All I get is the first log statement output to the console.
NSLog(@"Get here...");
Task *task = (Task *)[NSEntityDescription insertNewObjectForEntityForName:@"Task" inManagedObjectContext:insertionContext];
NSLog(@"but never get here...");
Any suggestions as to how I can work out what the problem is?
© Stack Overflow or respective owner