Updating a TableView with a WebService and Saving to CoreData

Posted by jcady on Stack Overflow See other posts from Stack Overflow or by jcady
Published on 2010-05-18T01:34:28Z Indexed on 2010/05/18 1:40 UTC
Read the original article Hit count: 351

Filed under:
|
|
|

I am working on a project where I have a table view that is currently updated via a web request that returns XML. I implemented

-(int)numberOfRowsInTableView:(NSTableView*)tv

and

 -(id)tableView:(NSTableView *)tv objectValueForTableColumn:(NSTableColumn*)tableColumn row:(int)row

in my XML parsing class, and have the table updated with the data that is pulled down from the server.

I want to save the data that is pulled down using Core Data, so that the table can be saved/loaded. Then later on application start when the web request is made, it will only add data that is not already present. (The XML is sorted by release date, so later I will check to see which release dates are not loaded up from the Core Data store, and only load newer entries.)

How would I go about implementing this? I am a very new Cocoa developer, but have gone through the entire Hillegass book. Thanks so much.

© Stack Overflow or respective owner

Related posts about cocoa

Related posts about tableview