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 (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