• 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: Core Data migration: how to delete some managed objects?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data migration: how to delete some managed objects?


  • Subject: Re: Core Data migration: how to delete some managed objects?
  • From: Jerry Krinock <email@hidden>
  • Date: Tue, 05 Mar 2013 18:56:32 -0800

On 2013 Mar 05, at 14:25, Sean McBride <email@hidden> wrote:

> I take it you are using your technique successfully in practice?

Maybe not.  I'd pasted in some of my code but modified it for your case.  Although I have done a lot of stuff in that method, I'm not sure if I have ever used that specific technique of *not* invoking super, to "delete" an object.

If you invoked associateSourceInstance:withDestinationInstance:forEntityMapping: per the documentation, you'd pass nil for destinationInstance.  And then it will either (1) degenerate internally to a no-op, (2) raise an exception, or (3) crash.  You can figure it out from there :)


_______________________________________________

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: Core Data migration: how to delete some managed objects?
      • From: Sean McBride <email@hidden>
References: 
 >Core Data migration: how to delete some managed objects? (From: Sean McBride <email@hidden>)
 >Re: Core Data migration: how to delete some managed objects? (From: Jerry Krinock <email@hidden>)
 >Re: Core Data migration: how to delete some managed objects? (From: Sean McBride <email@hidden>)

  • Prev by Date: Re: Core Data migration: how to delete some managed objects?
  • Next by Date: Turning off screen shot ability
  • Previous by thread: Re: Core Data migration: how to delete some managed objects?
  • Next by thread: Re: Core Data migration: how to delete some managed objects?
  • Index(es):
    • Date
    • Thread