Re: Removing an object from an inverse (not deleting) does not remove from the other side?
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