hi all
i have this code that passes the core data context to one of the controllers. it was working great for few days, until the debugger started to give me the "not A type release" error and crashing the app. i have checked the app for leaks and i found leaks from the SappDelegate object. so i understand that i have to release it but it keeping crashing every time i do it.
any ideas thanks shani
SAppDelegate *hbad= [[SAppDelegate alloc] init];
NSManagedObjectContext *context = [hbad managedObjectContext];
[hbad release];
if (!context) {
NSLog(@"problem with mannaged");
}
self.managedObjectContext = context;