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: email@hidden
- Date: Wed, 28 Dec 2005 23:47:47 -0800
Last reply to myself if no one knows anything about this.
After trying to implement every KVC method in existence it (object/to-
many removal methods) still is not called in my managed object from a
stock NSArrayController.
I'm gonna file a bug about this, because the documentation makes one
think an object's relation at the end of a NSArrayController's content
would get its methods called, but it doesn't so its either a doc bug
or a coredata bug.... guess it wouldn't be the first.
Andre wrote:
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
_______________________________________________
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