Oh...  Is this what you mean?

NSArray *objectsToLoopThru = [myArrayControllerWithRecordsFromTheWeb arrangedObjects];

foreach (id oneObjectInTable in objectsToLoopThru) {
        NSManagedObject *newObjectToStore = [NSEntityDescription
                        insertNewObjectForEntityForName:@"CustomerEntity"
                        inManagedObjectContext:myMOC];
[newObj setValue:[oneObjectInTable valueForKey:@"firstName"] forKey:@"firstName"]; [newObj setValue:[oneObjectInTable valueForKey:@"lastName"] forKey:@"lastName"];
        // etc...
        
}


On Sep 11, 2008, at 10:58 AM, Amy Heavey wrote:

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


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to