views:

37

answers:

2

Hi friends,

I have used core data in my apps. My application works fine in online and offline mode . I have doubt about, how to write a query in Core data(Similar SQLite). I wrote a query and used in SQLite. But i want to know about, how to write a query(select, insert, update, etc,.) using core data. Please guide me and give me some usefullinks.

Thanks

Regards,
Pugal.

+2  A: 

You should read though Apple's tutorial on Core Data. It goes through the process of making a very simple app that used Core Data. For more complicated queries you will want to make a predicate to restrict the returned values.

unholysampler
+1  A: 

I think you cannot write SQL like query (select, insert, update...), rather you have to use NSPredicate objects. Which support such type of operation in its own way.

karim