• 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: Inverse relationships with subclasses
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core data: Inverse relationships with subclasses


  • Subject: Re: Core data: Inverse relationships with subclasses
  • From: Quincey Morris <email@hidden>
  • Date: Wed, 29 Sep 2010 16:22:09 -0700

On Sep 29, 2010, at 15:30, Gideon King wrote:

> Sorry, I should have been clearer. It is a sub-entity which is implemented as a subclass.

Hmm. I'd suspect a limitation of delete cascading rules, but that doesn't really fit with the error message your reported. Was that error text exactly what was displayed? It appeared when *saving*, yes (as opposed to setting the relationship)?

If the inverse is in fact being set to an invalid object, I'd take a look at the way the subclass object is being created. If that's not fruitful, ...

It's also possible to override some validation methods (see http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CoreData/Articles/cdValidation.html#//apple_ref/doc/uid/TP40004807-SW3). In your override, you could call the super implementation first and break if that fails. That would let you inspect the objects and relationships involved.


_______________________________________________

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: Inverse relationships with subclasses
      • From: Gideon King <email@hidden>
References: 
 >Core data: Inverse relationships with subclasses (From: Gideon King <email@hidden>)
 >Re: Core data: Inverse relationships with subclasses (From: Quincey Morris <email@hidden>)
 >Re: Core data: Inverse relationships with subclasses (From: Gideon King <email@hidden>)

  • Prev by Date: Re: Open Multiple Files
  • Next by Date: Re: Core data: Inverse relationships with subclasses
  • Previous by thread: Re: Core data: Inverse relationships with subclasses
  • Next by thread: Re: Core data: Inverse relationships with subclasses
  • Index(es):
    • Date
    • Thread