Re: Strange Managed Context Error
Re: Strange Managed Context Error
- Subject: Re: Strange Managed Context Error
- From: mmalcolm crawford <email@hidden>
- Date: Sat, 20 Aug 2005 14:33:16 -0700
On Aug 20, 2005, at 10:19 AM, Colin Cornaby wrote:
I'm running the following code (it is inside a
NSManagedObjectContent subclass):
Why have you subclassed NSManagedObjectContext? There should
typically be little reason to do so.
NSFetchRequest *request = [[[NSFetchRequest alloc] init] autorelease];
NSEntityDescription *entity = [NSEntityDescription
entityForName:@"EntityType" inManagedObjectContext:self];
[request setEntity:entity];
NSArray *entities = [self executeFetchRequest:request error:nil];
return entities;
However when it runs, it prints to the console when it tries to
execute the fetch request:
"Exception raised during posting of notification. Ignored.
exception: +entityForName: could not locate an NSManagedObjectModel"
How have you set up the context? Have you set its persistent store
coordinator?
so I'm assuming something could be being released,
If you were messaging a freed object, your application would crash --
typically with a SIGBUS 10.
mmalc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden