Re: Core Data: Custom to-many relationship setter not being invoked
Re: Core Data: Custom to-many relationship setter not being invoked
- Subject: Re: Core Data: Custom to-many relationship setter not being invoked
- From: Quincey Morris <email@hidden>
- Date: Mon, 22 Feb 2010 18:34:36 -0800
On Feb 22, 2010, at 15:54, Ken Tabb wrote:
> Yep I implemented all 4, as per the Design -> Data Model -> Copy to clipboard template, i.e.
>
> - (void)addEmployeesObject:(Employee *)value;
> - (void)removeEmployeesObject:(Employee *)value;
> - (void)addEmployees:(NSSet *)value;
> - (void)removeEmployees:(NSSet *)value;
>
> However if I implement -setEmployees as per Jerry's e-mail (and seemingly contravening the advice in the Core Data Programming Guide), then it works like a charm :-/
There's something else going here, though it isn't clear what. One thing you haven't said is *how* you're adding employees. Could you show the code that does this?
_______________________________________________
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