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

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


  • Subject: What exactly happens when I use Core Data's 'Remove' button?
  • From: "Arthur C." <email@hidden>
  • Date: Fri, 11 Aug 2006 15:32:02 +0200

I have a Core Data application where I can add and remove objects from a table. When I use the 'add' button, a method 'awakeFromInsert' is called, which I can use to set up data management such as key-value observing.

Is there a similar method that gets called when the 'remove' button is used? I found that neither the 'dealloc' nor the 'didTurnIntoFault' method gets called. The object-to-be-removed should at least be unregistered as KVO observer. Failing to do this leads to strange behaviour: the removed object reappears in the table view (!) when changing a key this object was observing.
So another question is why the object is not actually deleted (I would expect it to be dealloc-ed).



Thanks in advance,

Arthur C.

_________________________________________________________________
MSN Search, for accurate results! http://search.msn.nl

_______________________________________________
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: Chris Hanson <email@hidden>
    • Re: What exactly happens when I use Core Data's 'Remove' button?
      • From: Bill Bumgarner <email@hidden>
    • Re: What exactly happens when I use Core Data's 'Remove' button?
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Re: TextView question
  • Next by Date: Re: What exactly happens when I use Core Data's 'Remove' button?
  • Previous by thread: Unified toolbar emptiness
  • Next by thread: Re: What exactly happens when I use Core Data's 'Remove' button?
  • Index(es):
    • Date
    • Thread