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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to