• 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: CoreData: How to do Transient Entities?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >CoreData: How to do Transient Entities? (From: Lee Morgan <email@hidden>)
 >Re: CoreData: How to do Transient Entities? (From: mmalcolm crawford <email@hidden>)
 >Re: CoreData: How to do Transient Entities? (From: Lee Morgan <email@hidden>)
 >Re: CoreData: How to do Transient Entities? (From: mmalcolm crawford <email@hidden>)
 >Re: CoreData: How to do Transient Entities? (From: Lee Morgan <email@hidden>)
 >Re: CoreData: How to do Transient Entities? (From: Nicko van Someren <email@hidden>)

  • Prev by Date: Re: CoreData: How to do Transient Entities?
  • Next by Date: NSMetadataQuery can not be synchronous ?
  • Previous by thread: Re: CoreData: How to do Transient Entities?
  • Next by thread: NSOutlineView
  • Index(es):
    • Date
    • Thread