Creating new managed object on 10.4 problem
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