• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Core Data: Custom to-many relationship setter not being invoked
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Core Data: Custom to-many relationship setter not being invoked
      • From: Ken Tabb <email@hidden>
References: 
 >Core Data: Custom to-many relationship setter not being invoked (From: Ken Tabb <email@hidden>)
 >Re: Core Data: Custom to-many relationship setter not being invoked (From: Keary Suska <email@hidden>)
 >Re: Core Data: Custom to-many relationship setter not being invoked (From: Ken Tabb <email@hidden>)

  • Prev by Date: Re: Core Data: Custom to-many relationship setter not being invoked
  • Next by Date: Re: Help with creating CustomViews
  • Previous by thread: Re: Core Data: Custom to-many relationship setter not being invoked
  • Next by thread: Re: Core Data: Custom to-many relationship setter not being invoked
  • Index(es):
    • Date
    • Thread