Re: CoreData: unsolicited undelete
Re: CoreData: unsolicited undelete
- Subject: Re: CoreData: unsolicited undelete
- From: Pierre Bernard <email@hidden>
- Date: Fri, 23 Sep 2005 15:05:42 +0200
Thanks Jim!
That post just might be the solution to my problem.
The object is actually new (unsaved) when it is deleted. The code
below is my exact code. It's quite a bit odd that the meaning of
isDeleted is undefined across processPendingChanges.
Best
Pierre
On Sep 23, 2005, at 2:57 PM, Jim Correia wrote:
On Sep 23, 2005, at 8:24 AM, Pierre Bernard wrote:
Could anyone explain how this can happen?
[context deleteObject:queryItem];
BOOL isDeleted = [queryItem isDeleted]; // YES
[context processPendingChanges];
BOOL isStillDeleted = [queryItem isDeleted]; // NO !!
Where did I mess up?
Is that exactly the code in question? You didn't save the managed
object context in between?
<http://www.cocoabuilder.com/archive/message/cocoa/2005/7/14/141922>
further explains isDeleted.
Jim
_______________________________________________
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