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                 s...@rogue-research.com
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to