views:

109

answers:

1

I am trying to get the total count for the phone numbers listed in the AddressBook, in all groups as a whole.

I can successfully retrieve Person count and Group count, just not the total number of Phone Numbers.

    ABAddressBookRef m_addressbook = ABAddressBookCreate();
    CFIndex nPeople  = ABAddressBookGetPersonCount(m_addressbook);
    CFIndex nGroups  = ABAddressBookGetGroupCount(m_addressbook);
A: 

CFIndex nPeople = ABAddressBookGetPersonCount(m_addressbook);

Should return the count for everyone in the addressbook.

Jordan
I think this is what they said they didn't want.
Jeff B
which I return correctly, need to return the total phone numbers for all persons in all groups.
AWright4911