Hi
My App uses core data and has a UITabBarController set as the root controller.
For any view controllers that are nested in the tab bar controller i can access the App Delegate's Managed Data Context with
Code:
[(MyAppDelegate *)[[UIApplication sharedApplication] delegate] managedObjectContext];
Which is fine, adding/retrieving data okay.
I'm also able to get the context in exactly the same way for views that lie outside of the root controller tab hierarchy,. however i get
Code:
FREED(id): message persistentStoreCoordinator sent to freed object=0x3b4ac70
Program received signal: “EXC_BAD_INSTRUCTION”.
When i try for example to create an entity description with:
Code:
NSEntityDescription *entityDesc = [NSEntityDescription entityForName:@"TheEntity" inManagedObjectContext:managedObjectContext];
Can anybody shed any light as to why this is happening? Or a lead on how to resolve it?
Thank you
Hanks