Re: creating new instance of coredata entity
Re: creating new instance of coredata entity
- Subject: Re: creating new instance of coredata entity
- From: Amy Heavey <email@hidden>
- Date: Thu, 11 Sep 2008 18:22:26 +0100
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 tableview contains all of the data needed, eg I have
customers first name, last name, email address, and in the datamodel
there is a Customer Entity (class CustomerEntity) with a firstName
and lastName attributes, and an emailaddresses relationship.
I don't know how to loop over the tableviewdata creating new
instances of the entity?
Many Thanks
Amy Heavey
On 11 Sep 2008, at 18:05, Jamie Hardt wrote:
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 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 imported the
datamodel into my app, which seems fine. I need to import data
into this, and I've modified the sample application in Aaron
Hillegass book to pull data from my website like the amazone example.
So far It's pulling the xml from my site, and displaying it in the
tablevew, however I now need to loop over each row in the table,
and create a new instance of an entity defined in the datamodel.
Can anyone point me in the right direction? I don't know how to
reference the class in the datamodel as my class can't see it?
Many Thanks
Amy
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden