I have a base data store configured using a subclass of NSManagedObject: Note.
I can use NSEntityDescription insertNewObjectForEntityName: inManagedObjectContext: no problem, but when I try to do this:
NSManagedObjectContext* moc = [(QuickTextAppDelegate*)([[UIApplication sharedApplication] delegate]) managedObjectContext]; Note* note = [[Note alloc] initWithEntity:@"Note" insertIntoManagedObjectContext:moc];
I get an EXC_BAD_ACCESS error.
Using breakpoints, I see that NSManagedObjectContext * really points to a valid object.
Any help would be appreciated!
source share