• 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: Removing an object from an inverse (not deleting) does not remove from the other side?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Removing an object from an inverse (not deleting) does not remove from the other side?


  • Subject: Re: Removing an object from an inverse (not deleting) does not remove from the other side?
  • From: Andre <email@hidden>
  • Date: Wed, 28 Dec 2005 22:22:30 -0800

Responding to myself::

I have implemented a special removal method in my NSManagedObjec subclass in a to-many relation.
Problem: only gets called when "deleted object" is set in the array controller.... so removeXXXObject: (KVC compliant) only gets called if
the controller deletes! Unbelievable.... since I am actually removing the object out of the relation with the remove: method, even if its not deleted from the MOC....

This is frustrating, it seems inconsistent.

Andre

email@hidden wrote:


Hi list,

Is the standard behavior of removing an object from a many-to-many with inverse relationship using NSArrayController not to remove the object from the other side of the relationship?
I would have thought that would be so, even though I don't want to delete the object... if I remove the object programatically does it behave as I expect?

It doesn't seem explicitly mentioned in the docs (though it does mention deleting as opposed to removal and inverse)

Otherwise I have to code it...

Thanks,

Andre
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Follow-Ups:
    • Re: Removing an object from an inverse (not deleting) does not remove from the other side?
      • From: email@hidden
  • Prev by Date: Re: Spotlight
  • Next by Date: Re: Defaults not sync'ing?
  • Previous by thread: Re: Defaults not sync'ing?
  • Next by thread: Re: Removing an object from an inverse (not deleting) does not remove from the other side?
  • Index(es):
    • Date
    • Thread