Query interface for iPhone CoreData store

Posted by JT on Stack Overflow See other posts from Stack Overflow or by JT
Published on 2010-05-16T12:41:19Z Indexed on 2010/05/16 12:50 UTC
Read the original article Hit count: 163

Filed under:
|
|

Hi, another iPhone newbie question...

I have the following:

NSPersistentStoreCoordinator NSManagedObjectContext NSManagedObjectModel

Is it possible to run queries directly on the store (since its a sqlite DB)? I'm trying to delete all the records from a tableview, and figured a "DELETE FROM table" would be nice and quick as opposed to looping through the records and removing them manually (which i'm also struggling with).

Thanks for your time,

James

© Stack Overflow or respective owner

Related posts about iphone-sdk

Related posts about core-data