I have made a a datamodel with an entity named "Status". I also created the appropriate classes so I can use the property's to get the attributes. But it doesn't seem like my app can find my datamodel :S
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions: (NSDictionary *)launchOptions
{
// Database test.
NSManagedObjectContext *managedObjectContext = self.managedObjectContext;
Blabla *t = [NSEntityDescription insertNewObjectForEntityForName:@"Status" inManagedObjectContext:managedObjectContext];
I took the relevant code out. It stops on the last line giving me this error:
+entityForName: could not locate an entity named 'Status' in this model.'
I double checked the names. I really have an entity called Status. I dont get it :S I also checked if the data model is in my compile source. It is...
Thanks...