creating new instance of coredata entity

2008-09-11 Thread Amy Heavey
Hi, Sorry for the newbie question, I'm trying to write an app to access/edit data held in an sqlite file generated by another coredata app. I need to be able to access the data in ways not possible in the original app (not created by me) Following some advice from this list, I have

Re: creating new instance of coredata entity

2008-09-11 Thread Jamie Hardt
How does the sqlite file relate to pulling XML from your website? I do not follow you there. On Sep 11, 2008, at 1:44 AM, Amy Heavey wrote: Hi, Sorry for the newbie question, I'm trying to write an app to access/edit data held in an sqlite file generated by another coredata app. I need

Re: creating new instance of coredata entity

2008-09-11 Thread Amy Heavey
I need to add data from the website to the sqlite file created/used by the cocoa application. I can pull the data in XML out of the website, and display it in a tableview (Aaron Hillegass sample code), but now I need to add that data to my app (stored in an sqlite file) each row of the

Re: creating new instance of coredata entity

2008-09-11 Thread Jamie Hardt
Ah I see. XML on web - your program - sqlite store that someone else's program reads/writes. Looping over the data in the table should just be a matter of going through all of the items in the table's bound NSArrayController: //code NSArray *objectsToLoopThru =

Re: creating new instance of coredata entity

2008-09-11 Thread Amy Heavey
Thanks, I have got access to the datamodel, I've imported it into my xcode project, it's how to actually create and write the entity that i'm stuck on, all the examples i've found seem to use bindings and add buttons, Many Thanks Amy Heavey On 11 Sep 2008, at 18:39, Jamie Hardt

Re: creating new instance of coredata entity

2008-09-11 Thread Amy Heavey
Also, I don't have an array controller bound to the table view, the tableviews datasource outlet is set to the instance of my class that pulls the xml and processes it, Many Thanks Amy Heavey On 11 Sep 2008, at 18:39, Jamie Hardt wrote: Ah I see. XML on web - your program - sqlite

Re: creating new instance of coredata entity

2008-09-11 Thread Jamie Hardt
Oh... Is this what you mean? NSArray *objectsToLoopThru = [myArrayControllerWithRecordsFromTheWeb arrangedObjects]; foreach (id oneObjectInTable in objectsToLoopThru) { NSManagedObject *newObjectToStore = [NSEntityDescription

Re: creating new instance of coredata entity

2008-09-11 Thread Amy Heavey
Quite possibly - off to have go, Thank you, Many Thanks Amy Heavey On 11 Sep 2008, at 19:09, Jamie Hardt wrote: Oh... Is this what you mean? NSArray *objectsToLoopThru = [myArrayControllerWithRecordsFromTheWeb arrangedObjects]; foreach (id oneObjectInTable in objectsToLoopThru) {