How to sync iPhone and Mac CoreData objects through bonjour?

Posted by monotreme on Stack Overflow See other posts from Stack Overflow or by monotreme
Published on 2010-03-19T06:11:51Z Indexed on 2010/03/19 7:01 UTC
Read the original article Hit count: 491

I know similar questions have been asked before. I'm using the Sync Demo app I found online here, which uses Picture Sharing as a guide.

I've integrated it into my desktop and iphone apps and have the connection working, but am clueless as to how to actually sync my objects.

Is it as simple as

if ([iphone Object] != [desktop object])
{
 //merge the two
}

I have the exact same object model used, I just basically want to know how to check if there are differences, and copy the ones that are different over.

Anyone know of any sample code anywhere that would show this?

Thanks so much.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about core-data