Jump to content

URGENT IOS Error with core data.

TheAnonymousPoster

Here is my code

 

NSManagedObjectContext *context = [[NSManagedObjectContext alloc] init];

Memory *newMemory = (Memory*)[NSEntityDescription insertNewObjectForEntityForName:@"Memory" inManagedObjectContext:context];

And here is the error message

"Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '+entityForName: could not locate an NSManagedObjectModel for entity name 'Memory"

From the sounds of it is unable to find the entity 'Memory'. However I have no idea why. Any help?

 

Cheers for any help,.

Tom

Asrock X79 Extreme4-M || Intel i7-3930K @ 4.5GHz  || EVGA GTX 780Ti SC || 32Gb Kington hyperX|| Modded Corsair 350D || Intel 530 SSD 512Gb || 2x WD Caviar Black 2TB || Corsair H100I || NZXT HUE || Custom Sleeved BeQuiet P9 600 Watt 


HTC ONE || Asus Zenbook UX302LG

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×