• 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 01:50:55 -0700


On May 20, 2005, at 1:46 AM, Lee Morgan wrote:
Any advice on how to go about making a select few entities transient?

Prior to saving, fetch the instances of the unwanted entity, and delete them.

Thats what I was thinking I would have to do... Considering their ALL of the same two entities, this shouldn't be that hard of a task.
Should I keep an array around of the NSManagedObjects that I wish to delete before saving?


That's likely to give you a complex maintenance burden, especially compared with...

Or is there an easy way to get every managed object of a specific entity?

... simply execute a fetch request with no predicate.

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


  • Follow-Ups:
    • Re: CoreData: How to do Transient Entities?
      • From: Lee Morgan <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>)

  • Prev by Date: Re: CoreData: How to do Transient Entities?
  • Next by Date: Re: CoreData: How to do Transient Entities?
  • Previous by thread: Re: CoreData: How to do Transient Entities?
  • Next by thread: Re: CoreData: How to do Transient Entities?
  • Index(es):
    • Date
    • Thread