Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 11-06-2011, 02:46 AM   #1 (permalink)
Registered Member
 
Join Date: Feb 2011
Posts: 36
Triston is on a distinguished road
Default Core Data updating from one model to another.

Hi,

i am not sure if the title correctly explain my problem, and i am new to core data development.

I have multiple coredata models in my app.
let's say:
model1.xcdatamodel and model2.xcdatamodel, there are some entities within them, and the model1.xcdatamodel updates by itself(some webservices stuff), and i need to update model2.xcdatamodel from model1.xcdatamodel(by checking what's been added to model1).

For example: model1 stores Users. When there is a new user added to it, i need to update model2 to have the new user.

i know i can do some for/if-statements, but it looks like the stupid way to do it, also will slow down the performance.

from looking in the Core Data reference, Using contextDidSave() or mergeChangesFromContextDidSaveNotification or something like this should be the ideas to go with. could you please provide your suggestions?

really appreciate about this help.
Triston is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 400
17 members and 383 guests
7twenty7, Alex-alex, Apptronics RBC, baja_yu, dre, FrankWeller, gwelmarten, ipodphone, jeroenkeij, jleannex55, matador1978, n00b, pbart, reficul, Retouchable, Sami Gh, usernametaken
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,676
Threads: 94,125
Posts: 402,910
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jleannex55
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 06:20 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0