"Make This My Card" tag/switch via Contacts.syncschema ?

  • Hi,

    just in case anyone of you is reading the syncservices-dev list, too:
    sorry for posting the same question here again.
    unfortunately syncservices-dev is sooooo low-volume... this is why i
    am trying my luck again using this list.

    i am working on a sync between a device (via my app) and
    addressbook.app via syncservices using the default schema
    (Contacts.syncschema: http://developer.apple.com/documentation/AppleApplications/Reference/SyncSe
    rvicesSchemaRef/Articles/Contacts.html
    )
    .

    but i'd like to know, which card/contact is marked in addressbook.app
    as "Make This My Card" in order to tell the device "it's owner".
    so far i found zero information on this.

    any help/hint is greatly appreciated.

    thanks and best regards,

    --Joeles
  • [[ABAddressBook sharedAddressBook] me]

    On Nov 26, 2007, at 10:02 AM, Joeles Baker wrote:

    > Hi,
    >
    > just in case anyone of you is reading the syncservices-dev list,
    > too: sorry for posting the same question here again.
    > unfortunately syncservices-dev is sooooo low-volume... this is why i
    > am trying my luck again using this list.
    >
    > i am working on a sync between a device (via my app) and
    > addressbook.app via syncservices using the default schema
    > (Contacts.syncschema: http://developer.apple.com/documentation/AppleApplications/Reference/SyncSe
    rvicesSchemaRef/Articles/Contacts.html
    )
    > .
    >
    > but i'd like to know, which card/contact is marked in
    > addressbook.app as "Make This My Card" in order to tell the device
    > "it's owner".
    > so far i found zero information on this.
    >
    > any help/hint is greatly appreciated.
    >
    > thanks and best regards,
    >
    > --Joeles
  • Hi,

    thanks for your quick answer.

    Tony Becker wrote:

    > [[ABAddressBook sharedAddressBook] me]

    but is it really the way to go?
    the documentation told me:

    "Important:  If your application uses the Sync Services and Address
    Book frameworks together, then you should not use Sync Services to
    sync data shared with the Address Book Framework. The Address Book
    Framework already syncs its records with Sync Services, so
    applications sharing the Address Book data do not have to (and should
    not) sync those records. The results are unpredictable and may result
    in data loss, if you attempt to sync the same data as the Address Book
    Framework."

    best,

    --Joeles
  • The warning is real. We don't use Sync Services, only AB, so we don't
    see the issue below.
    Your design will have to resolve the potential data inconsistency if
    you do use both frameworks.

    On Nov 26, 2007, at 10:26 AM, Joeles Baker wrote:

    > Hi,
    >
    > thanks for your quick answer.
    >
    > Tony Becker wrote:
    >
    >> [[ABAddressBook sharedAddressBook] me]
    >
    > but is it really the way to go?
    > the documentation told me:
    >
    > "Important:  If your application uses the Sync Services and Address
    > Book frameworks together, then you should not use Sync Services to
    > sync data shared with the Address Book Framework. The Address Book
    > Framework already syncs its records with Sync Services, so
    > applications sharing the Address Book data do not have to (and
    > should not) sync those records. The results are unpredictable and
    > may result in data loss, if you attempt to sync the same data as the
    > Address Book Framework."
    >
    > best,
    >
    > --Joeles
previous month november 2007 next month
MTWTFSS
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    
Go to today