• 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: Finding all deleted objects from Core Data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finding all deleted objects from Core Data


  • Subject: Re: Finding all deleted objects from Core Data
  • From: email@hidden
  • Date: Thu, 05 Oct 2006 13:01:48 +0200
  • Envelope-from: email@hidden

Remco,

What you can do is subclass NSManagedObject for that entity (if you haven't
already done that) and add the -didSave method:

- (void)didSave
{
  if ([self isDeleted])
    [self _removeFile];

 [super didSave];
}



Kind regards,

Diederik Hoogenboom

Quoting Remco Poelstra  <email@hidden>:


Hi,

I've a Core Data app where instances of a particular entity contain a filename. When these instances are removed from the object graph I also want to remove the file. But in order to support undo management, I can't directly remove the file, I've to wait until the managed object context is send a save: message. Now I've the problem that at that time I can only request the objects that will be deleted from the persistent store, not the objects that haven't been saved yet. How do I get a list of all objects that are deleted? The unod manager also doesn't seem to be able to give me a list of deleted objects.

Thanks in advance,

Remco Poelstra

_______________________________________________
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




_______________________________________________ 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
  • Follow-Ups:
    • Re: Finding all deleted objects from Core Data
      • From: Remco Poelstra <email@hidden>
References: 
 >Finding all deleted objects from Core Data (From: Remco Poelstra <email@hidden>)

  • Prev by Date: Finding all deleted objects from Core Data
  • Next by Date: Re: determine image type
  • Previous by thread: Finding all deleted objects from Core Data
  • Next by thread: Re: Finding all deleted objects from Core Data
  • Index(es):
    • Date
    • Thread