How to delete all objects for a given entity from the ManagedObjectContext

Posted by E-Madd on Stack Overflow See other posts from Stack Overflow or by E-Madd
Published on 2010-04-30T20:14:02Z Indexed on 2010/04/30 20:17 UTC
Read the original article Hit count: 201

Filed under:
|
|
|

I don't want to use the reset method for my ManagedObjectContext. I only need to remove all of the objects for a specific entity, but I don't see any methods for doing this. Selecting all of the objects for a specific entity and looping over each and deleting them works, but it's very slow.

© Stack Overflow or respective owner

Related posts about cocoa-touch

Related posts about core-data