What exactly happens when I use Core Data's 'Remove' button?
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