Re: refreshing and relationships
Re: refreshing and relationships
- Subject: Re: refreshing and relationships
- From: Arturo PĂ©rez <email@hidden>
- Date: Sun, 15 Jan 2006 13:29:54 -0500
On Jan 15, 2006, at 12:33 PM, Tom Woteki wrote:
I have a source object, sourceObj, with a to-many relationship. Say
the relationship key is "targets" . I obtain the related objects by
invoking sourceObj.targets() where the method targets() returns an
NSArray as a cover for a call to storedValueForKey( "targets" ).
I now invoke:
/* Assume editingContext exists and all EOs are in it */
editingContext.deleteObject( aSpecificTargetObject )
You also need to do a removeObjectFromBothSidesOfRelationshipWithKey.
If the sourceObj "owns" the deleted object that's all you have to do.
-arturo
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden