title: iPhone Address Book: List Sources and Accounts
body: <p>I need to select the address book source in which contacts are created by my app.</p>
  
  <p>In the Contacts app, when I select "&lt; Groups", I get the options</p>
  
  <ul>
    <li><b>All Contacts</b></li>
    <li><b>MobileMe</b>
      <ul>
        <li>All MobileMe</li>
        <li>Company</li>
        <li>Family</li>
        <li>Friends</li>
        <li>…</li>
      </ul>
    </li>
    <li><b>ACME Exchange</b>
      <ul>
        <li>ACME Exchange Global Address List</li>
      </ul>
    </li>
    <li><b>Test CardDAV</b>
      <ul>
        <li>Addressbook</li>
        <li>Search</li>
      </ul>
    </li>
  </ul>
  
  <p>Using the function <code>ABAddressBookCopyArrayOfAllSources</code> I get source records for</p>
  
  <ul>
    <li>No name; type: kABSourceTypeMobileMe</li>
    <li>No name; type: kABSourceTypeExchangeGAL</li>
    <li>"Addressbook"; type: kABSourceTypeCardDAV</li>
    <li>"Search"; type: kABSourceTypeCardDAVSearch</li>
  </ul>
  
  <p>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.</p>
  
  <p>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?</p>