Re: sync service question
Re: sync service question
- Subject: Re: sync service question
- From: "Dr. H. Nikolaus Schaller" <email@hidden>
- Date: Fri, 8 Jul 2005 20:03:10 +0200
I am also working on a similar project to sync the Sharp Zaurus:
http://www.dsitri.de/wiki.php?page=ZMacSync
Nikolaus Schaller
Am 08.07.2005 um 17:35 schrieb Olivier Destrebecq:
I'm trying to create an application to sync the address book with
some device.
I'm stuck at the point where i need to convert the data from the
device format to something form the sync server can understand. I
put all the attributes in a dictionary following the examples
online, but then i need to put in the relationships in and i get
stuck. Anyone has pointers on how to do this. Apparently i need to
put in the record identifier for the item in the relationship. But
how do i get those since i can't keep track of these on the device.
Yes, you need to put in the unique ID of the item record in a
different entity. Or even an array of multiple IDs.
more specifically i have problem with the relationships: addresses,
emails, phone numbers from the contact entity.
Since the device cannot keep track of the changes, i have to do a
slow sync every time, and i cannot keep track of the record ids on
the device
I did not find any straight forward example on apple web site.
The solution I have taken for pulling records is to store a local
copy of all these relationships when being pulled. So, I can flatten
the record when I pull a Contact.
I hope that I can search through them to find the matching unique-ID
when pushing. Or, if a new record was added on the client device, I
can identify that and push an ISyncChangeTypeAdd for the related
entity. I am not sure if that is the intended way but it seems to
work although it basically duplicates the Truth just to get to those
records which I regard as a bad design...
any help appreciated.
If you need more discussion, please send a PM (I am also interested
in finding someone who knows something about Sync Services).
+------------------------------------------------------+
DSITRI - Dr. Schaller IT Research Initiative
Buchenstr. 3
D-82041 Deisenhofen
http://www.dsitri.de
+------------------------------------------------------+
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden