• 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
Creating new managed object on 10.4 problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Creating new managed object on 10.4 problem


  • Subject: Creating new managed object on 10.4 problem
  • From: Colin Cornaby <email@hidden>
  • Date: Wed, 12 Aug 2009 11:56:58 -0700

Hey,

I have a CoreData project with a schema that I layout by hand in a class (because the schema has to be used in a command line tool.) On 10.5 my code is working perfectly, but on 10.4 whenever my code attempts to create a new object, I get an exception. According to the stack trace it looks like CoreData is trying to fulfill the fault on object creation.

My object creation line looks like this:
rootObject = [NSEntityDescription insertNewObjectForEntityForName:@"group" inManagedObjectContext:context];


....and the exception thrown is:
*** Uncaught exception: <NSUnknownKeyException> [<RGProductGroup 0x324060> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key files.


...where files is a key defined in the superentity for group.

As I said, on 10.5 this code works perfectly. Does anyone know of any issues that could cause this?

Thanks,
Colin
_______________________________________________

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


  • Prev by Date: Re: Adding more and more key/value observers is much too slow - workaround needed.
  • Next by Date: Re: CATransition + NSView mask
  • Previous by thread: Re: Releasing ivars in -didTurnIntoFault. Should set to nil?
  • Next by thread: [iPhone 3.0] how to find an image leak using Instruments?
  • Index(es):
    • Date
    • Thread