Problem setting to-one relationship on NSManagedObject
Problem setting to-one relationship on NSManagedObject
- Subject: Problem setting to-one relationship on NSManagedObject
- From: Jim Majure <email@hidden>
- Date: Fri, 04 Dec 2009 17:37:44 -0600
I'm using the following code to create a new Core Data entity and
populate a to-one relationship. Everything seems to be working okay
except the "setValue:forKey:" to establish the to-one relationship.
I've included the error messages below. Any ideas what I might be
doing wrong?
Thanks,
Jim
NSManagedObject *newTimeEntry = [NSEntityDescription
insertNewObjectForEntityForName:@"TimeEntry"
inManagedObjectContext:[selectProjectController
managedObjectContext]];
NSManagedObject *project = [selectProjectController selection];
[newTimeEntry setValue:project forKey:@"project"];
2009-12-04 17:32:58.833 Checkbook[1270:a0f] -[_NSControllerObjectProxy
managedObjectContext]: unrecognized selector sent to instance 0x101efa0
2009-12-04 17:32:58.834 Checkbook[1270:a0f] -[_NSControllerObjectProxy
managedObjectContext]: unrecognized selector sent to instance 0x101efa0
_______________________________________________
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