NSManagedObject class method error
NSManagedObject class method error
- Subject: NSManagedObject class method error
- From: "ad veloper" <email@hidden>
- Date: Mon, 8 Oct 2007 16:40:37 +0100
+ (Foo *)fooWithDefaultContext
{
return [NSEntityDescription insertNewObjectForEntityForName:@"Foo"
inManagedObjectContext:[[NSApp delegate] managedObjectContext]];
}
Throws:
*** NSRunLoop ignoring exception '+entityForName: could not locate an
NSManagedObjectModel'
Why doesn't this work?
Thanks.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden