• 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: What exactly happens when I use Core Data's 'Remove' button?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What exactly happens when I use Core Data's 'Remove' button?


  • Subject: Re: What exactly happens when I use Core Data's 'Remove' button?
  • From: "I. Savant" <email@hidden>
  • Date: Fri, 11 Aug 2006 11:13:52 -0400


Ah - I forgot about that approach. Disregard my last suggestion; this one is far better. :-)


I *would* recommend going (back?) over the Core Data Programming Guide. This topic is thoroughly covered there.

--
I.S.


On Aug 11, 2006, at 10:56 AM, Bill Bumgarner wrote:


On Aug 11, 2006, at 6:32 AM, Arthur C. wrote:

So another question is why the object is not actually deleted (I would expect it to be dealloc-ed).

As someone else said, it is marked as deleted in the context and not actually dealloc'd until save.


NSManagedObjectContext offers a notification named NSManagedObjectContextObjectsDidChangeNotification. Observe this and take appropriate action upon the managed objects found in the user info dictionary under the key NSDeletedObjectsKey.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com


This email sent to email@hidden

_______________________________________________ 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: What exactly happens when I use Core Data's 'Remove' button?
      • From: "Arthur C." <email@hidden>
References: 
 >What exactly happens when I use Core Data's 'Remove' button? (From: "Arthur C." <email@hidden>)
 >Re: What exactly happens when I use Core Data's 'Remove' button? (From: Bill Bumgarner <email@hidden>)

  • Prev by Date: Re: What exactly happens when I use Core Data's 'Remove' button?
  • Next by Date: Re: Two views
  • Previous by thread: Re: What exactly happens when I use Core Data's 'Remove' button?
  • Next by thread: Re: What exactly happens when I use Core Data's 'Remove' button?
  • Index(es):
    • Date
    • Thread