Re: Problem setting to-one relationship on NSManagedObject
Re: Problem setting to-one relationship on NSManagedObject
- Subject: Re: Problem setting to-one relationship on NSManagedObject
- From: Kyle Sluder <email@hidden>
- Date: Sun, 6 Dec 2009 22:03:30 -0800
On Fri, Dec 4, 2009 at 3:37 PM, Jim Majure <email@hidden> wrote:
> NSManagedObject *project = [selectProjectController selection];
> [newTimeEntry setValue:project forKey:@"project"];
As per the documentation, -selection returns a KVC-compliant proxy
object. You can't turn around and hand that off to Core Data as if it
were a full-fledged instance. Use -selectedObjects instead.
--Kyle Sluder
_______________________________________________
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