Re: What exactly happens when I use Core Data's 'Remove' button?
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: "Arthur C." <email@hidden>
- Date: Fri, 11 Aug 2006 17:50:41 +0200
Ah - I forgot about that approach. Disregard my last suggestion; this
one is far better. :-)
Yes, it looks good, that will probably solve the problem.
I *would* recommend going (back?) over the Core Data Programming Guide.
This topic is thoroughly covered there.
Indeed, it is shown there.
Thanks,
Arthur C.
--
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
_________________________________________________________________
Play online games with your friends with MSN Messenger
http://www.join.msn.com/messenger/overview
_______________________________________________
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