• 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
Re: CoreData: unsolicited undelete
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >CoreData: unsolicited undelete (From: Pierre Bernard <email@hidden>)
 >Re: CoreData: unsolicited undelete (From: Jim Correia <email@hidden>)

  • Prev by Date: NSOutlineView with C++ classes
  • Next by Date: Re: Radio button group and binding "enabled" of other GUI elements
  • Previous by thread: Re: CoreData: unsolicited undelete
  • Next by thread: NSOutlineView with C++ classes
  • Index(es):
    • Date
    • Thread