Re: Core Data and NSFetchRequest
Re: Core Data and NSFetchRequest
- Subject: Re: Core Data and NSFetchRequest
- From: Marcus Roberts <email@hidden>
- Date: Thu, 12 May 2005 06:53:13 +0100
On 5/11/05, mmalcolm crawford <email@hidden> wrote:
> > I get
> > "+entityForName: could not locate an NSManagedObjectModel"
> >
> Either 'moc' is nil or you've created the managed object context
> without setting up its persistent store coordinator.
Thank you! 'moc' was nil - I was trying to access the managed object
context too early, as I reference it through the document, and I was
calling it in the window controller constructor, before the contrller
knew what its document was. It just goes to show, check the simple
things first, but I have learnt alot about the managed object model in
the process anyway. Thanks mmalc!
Marcus
_______________________________________________
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