• 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
Re: Can record ID in iOS address book database change
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can record ID in iOS address book database change


  • Subject: Re: Can record ID in iOS address book database change
  • From: Mike Abdullah <email@hidden>
  • Date: Sun, 06 May 2012 23:10:52 +0100

I believe the transition to iCloud is also effectively a sync reset, so the IDs change.

Arguably, your app needs to handle an ID going away anyway, in case the user decides to delete that contact from their address book at some point.

On 6 May 2012, at 08:28, Steve Fogel wrote:

> Hi, all...
>
> The Address Book Programming Guide for iOS says that the ABRecordID of a person record in the address book database can change, after a MobileMe sync reset or for some other reason. Is this still true for iOS 5.0?
>
> That is, if I store an ABRecordID in my app and later want to retrieve that person with the following method, will I always get the person I want?
>
> ABRecordRef ABAddressBookGetPersonWithRecordID (
>   ABAddressBookRef addressBook,
>   ABRecordID recordID
> );
>
> If not, this is BAD. Primary keys that can change give me heartburn.
>
> Thanks
>
> Steve
> _______________________________________________
>
> 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


_______________________________________________

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

References: 
 >Can record ID in iOS address book database change (From: Steve Fogel <email@hidden>)

  • Prev by Date: Re: inconsistent behavior of NSString's localizedCaseInsensitiveCompare
  • Next by Date: Re: OSAtomic built-in operations
  • Previous by thread: Can record ID in iOS address book database change
  • Next by thread: OSAtomic built-in operations
  • Index(es):
    • Date
    • Thread