Re: CoreData deleteAll of kind
Re: CoreData deleteAll of kind
- Subject: Re: CoreData deleteAll of kind
- From: "Sean McBride" <email@hidden>
- Date: Mon, 6 Jul 2009 12:54:03 -0400
- Organization: Rogue Research Inc.
On 7/6/09 7:49 PM, Devraj Mukherjee said:
>I need my application to be able to delete all objects of a core data
>managed entity, at the moment the only way I can see how to do that is
>to fetch all objects of the entity kind and delete them one at a time
>looping through the collection.
>
>I have a suspicious feeling that there has to be a deleteAll message
>that helps clear entities of a certain kind.
I was wondering the same thing the other day. After searching the docs
and archives, I concluded the only way is to call deleteObject: in a
loop. I was surprised there's no method that takes an array/set and
deletes them all.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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