• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Mapping ABPerson to Sync Services
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mapping ABPerson to Sync Services


  • Subject: Mapping ABPerson to Sync Services
  • From: Andreas Monitzer <email@hidden>
  • Date: Wed, 3 Oct 2007 03:28:22 +0200

Hi,

I'm trying to implement a customer database in my application. I'm storing them in my own CoreData-database, but the address book contains a superset of the list (so I don't have to implement an address/telephone number/etc editor).
When the application determines that the address book entry no longer exists, it should pull its own version to the address book database. This might happen when the user deletes the entry or migrates the database to another computer.


Additionally, due to some reasons outside the scope of this email, there might be multiple customer databases on the same machine with potentially different versions of the same entry (Time Machine might cause this, when two different versions of different databases containing the same record are restored), which can cause merge conflicts when trying to re-add the record from multiple differing copies.
This sounds like a perfect application for the Sync Services (implementing a filter that only syncs records that exist in the customer databases). However, in order to import an address book record into my customer database, I have to get a full list of all entries and let the user choose one (presenting some information about each entry). The ABPeoplePickerView would be perfect for this.
Now I discovered a problem with this plan: For this to work, I have to somehow match the address book entries I get from the Sync Services to the ABRecords I get from the ABPeoplePickerView. How can I do this? Both have a unique identifier, but from my tests, they are not the same, and both records only contain one of them. I could do a match based on name, phone number, etc, but this would be an ugly hack, and would break when there are two address book entries with the same data (happened a few times here due to some issues with my Phone and iSync). Does anybody have an idea?


thanks
andy

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Mapping ABPerson to Sync Services
      • From: Benjamin Stiglitz <email@hidden>
    • Re: Mapping ABPerson to Sync Services
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: fetching from NSArray
  • Next by Date: Re: Mapping ABPerson to Sync Services
  • Previous by thread: Use of NSManagedObjectContextObjectsDidChangeNotification
  • Next by thread: Re: Mapping ABPerson to Sync Services
  • Index(es):
    • Date
    • Thread