How to sync iPhone and Mac CoreData objects through bonjour?
- by monotreme
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.