• 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: Is there a better way to delete all objects in a MOC & persistent store?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there a better way to delete all objects in a MOC & persistent store?


  • Subject: Re: Is there a better way to delete all objects in a MOC & persistent store?
  • From: Mike Abdullah <email@hidden>
  • Date: Sat, 1 May 2010 00:56:43 +0100

This has come up many times in the archives. Yes, you must do a fetch and delete each object in turn.

On 1 May 2010, at 00:18, Michael A. Crawford wrote:

> Or, am I forced to iterate through the results of a fetch calling deleteObject for each object found?
>
> -Michael
> _______________________________________________
>
> 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

_______________________________________________

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

References: 
 >Is there a better way to delete all objects in a MOC & persistent store? (From: "Michael A. Crawford" <email@hidden>)

  • Prev by Date: Is there a better way to delete all objects in a MOC & persistent store?
  • Next by Date: Crash setting NSManagedObject attributes
  • Previous by thread: Is there a better way to delete all objects in a MOC & persistent store?
  • Next by thread: Crash setting NSManagedObject attributes
  • Index(es):
    • Date
    • Thread