I need to select the address book source in which contacts are created by my app.
In the Contacts app, when I select "< Groups", I get the options
- All Contacts
- MobileMe
- All MobileMe
- Company
- Family
- Friends
- …
- ACME Exchange
- ACME Exchange Global Address List
- Test CardDAV
- Addressbook
- Search
Using the function ABAddressBookCopyArrayOfAllSources
I get source records for
- No name; type: kABSourceTypeMobileMe
- No name; type: kABSourceTypeExchangeGAL
- "Addressbook"; type: kABSourceTypeCardDAV
- "Search"; type: kABSourceTypeCardDAVSearch
The names are in no way descriptive and I would like to show the account names in addition to the source name or type, just like the Contact app does.
Do you know a way to find out the account name of a source, or to retrieve all existing account names and the sources of each account? Any other ideas to get more descriptive entries?