ABAddressBookCopyPeopleWithName() does not correctly match by composite name
||Date Originated:||07-Dec-2008 12:56 AM|
||Product Version:||iPhone SDK for 2.2 OS|
The documentation states that ABAddressBookCopyPeopleWithName() (and, indeed, it makes sense that) it will match records based on composite name, which should be the value returned by ABRecordCopyCompositeName(). Instead, this function ignores properties such as kABPersonPrefixProperty and kABPersonSuffixProperty in the composite name that it matches against for each record in the address book.
Steps to Reproduce:
1. Add two records to the address book of the testing device or simulator with composite names "Mr. Bart Simpson", "Bart Simpson", and "Bart Simpson Jr."
2. Call ABAddressBookCopyPeopleWithName(), giving it a suffix of "Bart Simpson".
The resulting CFArrayRef should only contain a single ABRecordRef. That is, it should only match the second record with the composite name "Bart Simpson".
The resulting CFArrayRef contains three ABRecordRefs - one for each record. The ABAddressBookCopyPeopleWithName() function's matching completely ignores the values for properties like prefix and suffix, and uses a non-standard composite name instead of the standard value returned by ABRecordCopyCompositeName() that includes all proper property values.
Reports posted here will not necessarily be seen by Apple.
All problems should be submitted at bugreport.apple.com before they are posted here.
Please only post information for Radars that you have filed yourself, and please do
not include Apple confidential information in your posts. Thank you!