0

In my application i am trying to differentiate contacts from different sources like Exchange,Facebook,Native contacts,iCloud.

I used ABSourceType to get source type for contacts ,but contacts in different sources
Ex. Yahoo and iCloud have same source type(value 4) but different source name (yahoo :contacts and iCloud as Card).
I did extensive search to get official Apple Docs to confirm value of kABSourceNameProperty for different sources. Can any one help me in this regard??

Thanks in advance,

iPatel
  • 41,165
  • 13
  • 109
  • 131

1 Answers1

0

As mentioned in: ABAddressBook ABSource and ABSourceType

the source type is a simple enum and it isn't possible to differ which "source" creates the Record:

enum {
    kABSourceTypeLocal       = 0x0,
    kABSourceTypeExchange    = 0x1,
    kABSourceTypeExchangeGAL = kABSourceTypeExchange | kABSourceTypeSearchableMask,
    kABSourceTypeMobileMe    = 0x2,
    kABSourceTypeLDAP        = 0x3 | kABSourceTypeSearchableMask,
    kABSourceTypeCardDAV     = 0x4,
    kABSourceTypeCardDAVSearch = kABSourceTypeCardDAV | kABSourceTypeSearchableMask,
};
typedef int ABSourceType;
Community
  • 1
  • 1
CarlJ
  • 9,361
  • 3
  • 31
  • 46