Re: Core Data: Determine if managed object is deleted
Re: Core Data: Determine if managed object is deleted
- Subject: Re: Core Data: Determine if managed object is deleted
- From: Mike Abdullah <email@hidden>
- Date: Sat, 22 Oct 2011 23:25:54 +0100
On 22 Oct 2011, at 05:35, Jerry Krinock wrote:
> In my world, -retainedObjectHasBeenDeleted is only going to be invoked in corner cases, but documentation states that -prepareForDeletion is invoked "when the receiver is about to be deleted". That may be quite often in some use cases. Also, there is another definition trap there – what does "when the receiver is about to be deleted" mean? How will that be interpreted by an Apple engineer who adds some new object-deleting method to support iCloud 2.0 in Mac OS 10.8? Plus, what Dave Fernandes noted.
Pretty sure the definition thee is "when the receiver is about to be deleted from the persistent store". i.e. when you save the context.
_______________________________________________
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