APAddressBook icon indicating copy to clipboard operation
APAddressBook copied to clipboard

Is RecordID always unique?

Open micnguyen opened this issue 8 years ago • 2 comments

I have noticed that when I delete a contact from the address book and then adding another contact, that it doesn't overwrite the removed ID and instead adds a new one. Is the recordID for an APContact always unique? I'm trying to sync up a custom domain model to an APContact sych that each APContact represents a 1:1 custom model and am using recordID. Is the record ID similar to that of Identifier in https://developer.apple.com/documentation/contacts/cncontact/identifier?

micnguyen avatar Nov 07 '17 00:11 micnguyen

I don't think that recordID matches Identifier. APAddressBook is a wrapper on deprecated AddressBook.framework not Contacts.framework.

belkevich avatar Nov 07 '17 12:11 belkevich

But if you try, please, tell us your results

belkevich avatar Nov 07 '17 12:11 belkevich