Re: CoreData: How to do Transient Entities?
Re: CoreData: How to do Transient Entities?
- Subject: Re: CoreData: How to do Transient Entities?
- From: mmalcolm crawford <email@hidden>
- Date: Fri, 20 May 2005 03:39:28 -0700
On May 20, 2005, at 3:29 AM, Nicko van Someren wrote:
Also, remember the handy [NSSet +setWithArray:] which will
instantly turn the result of your fetch request into something that
you can pass to minusSet: on any relationship value that is
referencing your transient objects.
In general there should be no need to do this. Provided that you
have fully specified the relationships between entities, the
integrity of the object graph is properly maintained, see
<http://developer.apple.com/documentation/Cocoa/Conceptual/
CoreData/Articles/cdRelationships.html>
This is a major benefit of using Core Data.
The only situation in which this will not work is if you have
specified a "No Action" Delete Rule. In this case, however, you have
actively opted to perform object graph maintenance yourself anyway...
mmalc
_______________________________________________
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