Core Data: New Error Message
Core Data: New Error Message
- Subject: Core Data: New Error Message
- From: Jim Hamilton <email@hidden>
- Date: Thu, 21 Jul 2005 18:29:57 -0400
All,
I've been working for a while on a Core Data project. Suddenly, when
I open an existing document, I get the following log message:
Can't modify a named fetch request in an immutable model.
If I attempt to open the same file a second time, it will open, and
it looks like all the data are there, but now (possible clue) fetch
requests from templates don't work: either I get a different log
entry ("*** -[NSCFDictionary _rootEntity]: selector not recognized
[self = 0x5b1ce10]") or a crash inside -[NSManagedObjectContext
executeFetchRequest:error:].
What changed from "working" to "not working"? I added some code
that, along the way, does some fetch requests, and I attempted to add
one more fetch request template to the data model. (Aside: The
predicate editor in Xcode won't handle attributes inherited from the
parent entity; rdar://4188909. When that attempt didn't work, I fell
back on +[NSPredicate predicateWithFormat:] to do it.)
So: What makes old, working code (with old, working fetch request
templates) stop working, even when they don't touch the new code (I
promise)?
Thanks,
Jim H
--
Jim Hamilton
email@hidden
email@hidden
_______________________________________________
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