AddressBook and CoreData
AddressBook and CoreData
- Subject: AddressBook and CoreData
- From: Alexander Lamb <email@hidden>
- Date: Thu, 25 Aug 2005 14:01:58 +0200
Hello,
As I understood the AddressBook API, the unique ID of a ABRecord is globally unique.
Now, if I have a CoreData application which stores people for which I am creating an AddressBook entry, I suppose it is a good practice to only keep the unique ID of the ABRecord in a field of my CoreData people record.
That being said, this CoreData application might be shared by several users (the "how" is covered in my previous post). Obviously, if I create a person in my app and in AddressBook from user A, when user B opens the database, the person doesn't exist in HIS AddressBook. At that point, is it "correct" to simply add the person to user B's AddressBook?
If the answer is yes, I have a problem: how do I set the same unique ID for the ABRecord?? If I don't, I will end up with several unique IDs for the same person in my CoreData record.
If I don't store the unique ID of the person in my CoreData application, I need to generate my own custom attribute in AddressBook to represent the "cross users globally unique ID". Not very elegant!
I would like to hear feedbacks of experience mixing AddressBook and CoreData applications!
Thanks,
Alex
_______________________________________________
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