• 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: NSManagedObjectContext -insertObject: Cancels Prior Deletion -- BUT!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSManagedObjectContext -insertObject: Cancels Prior Deletion -- BUT!


  • Subject: Re: NSManagedObjectContext -insertObject: Cancels Prior Deletion -- BUT!
  • From: Jerry Krinock <email@hidden>
  • Date: Thu, 7 May 2009 06:37:23 -0700


On 2009 May 06, at 11:32, Jim Correia wrote:

Using multiple MOCs with a single persistent store coordinator is
supported. It is pattern #1 in the Core Data threading documentation.

Thanks, Jim.

I believe that moving the children to a "foster parent" before deleting the real parent would be a practical solution.

But I don't want to implement any solution before I understand the problem!

I keep re-reading the quote from Ben Trumbull:

On 2009 May 05, at 05:28, Dave Fernandes wrote:
Begin forwarded message:
From: Ben Trumbull <email@hidden>

-insertObject: is the reciprocal of deleteObject: You can use it to cancel a deletion.

- Ben


It makes complete sense. But certainly one would not expect the un- deleted object to have had all of its attributes hosed? I find it hard to believe that this would be a bug in Core Data behavior after all these years, but equally hard to believe is that such behavior would not be documented.

I'm worried that I'm not understanding something basic in Core Data and therefore have other flaws in my design concept.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSManagedObjectContext -insertObject: Cancels Prior Deletion -- BUT!
      • From: Jerry Krinock <email@hidden>
References: 
 >NSManagedObjectContext -insertObject: Cancels Prior Deletion? (From: Jerry Krinock <email@hidden>)
 >Re: NSManagedObjectContext -insertObject: Cancels Prior Deletion? (From: Dave Fernandes <email@hidden>)
 >Re: NSManagedObjectContext -insertObject: Cancels Prior Deletion -- BUT! (From: Jerry Krinock <email@hidden>)
 >Re: NSManagedObjectContext -insertObject: Cancels Prior Deletion -- BUT! (From: Alexander Spohr <email@hidden>)
 >Re: NSManagedObjectContext -insertObject: Cancels Prior Deletion -- BUT! (From: Jerry Krinock <email@hidden>)
 >Re: NSManagedObjectContext -insertObject: Cancels Prior Deletion -- BUT! (From: Jim Correia <email@hidden>)

  • Prev by Date: Text color in NSOutlineView's selected row
  • Next by Date: Re: Text color in NSOutlineView's selected row
  • Previous by thread: Re: NSManagedObjectContext -insertObject: Cancels Prior Deletion -- BUT!
  • Next by thread: Re: NSManagedObjectContext -insertObject: Cancels Prior Deletion -- BUT!
  • Index(es):
    • Date
    • Thread