• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Core Data: New Error Message [SOLVED?]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data: New Error Message [SOLVED?]


  • Subject: Re: Core Data: New Error Message [SOLVED?]
  • From: Jim Hamilton <email@hidden>
  • Date: Thu, 21 Jul 2005 20:05:00 -0400

Hmm. A Clean of the target "fixed" the problem. Apparently, some internal detail (.mom file?) was keeping some kind of state around. huh?

I would still be grateful for any insights.

Jim H

On Jul 21, 2005, at 6:29 PM, Jim Hamilton wrote:

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


References: 
 >Core Data: New Error Message (From: Jim Hamilton <email@hidden>)

  • Prev by Date: Core Data Rookie
  • Next by Date: Re: Core Data Rookie
  • Previous by thread: Core Data: New Error Message
  • Next by thread: Cannot instantiate subclass of NSController
  • Index(es):
    • Date
    • Thread