0

The language I am using is Objective-C, and I'd like to get the exchange source list from the address book on Mac.

When using addressBook.framework for the iOS platform, I can found some API like:

CFArrayRef allSources = ABAddressBookCopyArrayOfAllSources(book);

This works perfectly, but I can't find any similar API in the same framework for Mac.

Is there any way to get the source list from mac?

Or are there any libraries or frameworks that contain the functions?

Mogsdad
  • 44,709
  • 21
  • 151
  • 275
LYTTE_LJ
  • 79
  • 8
  • You may be looking for `CFArrayRef allGroups = ABCopyArrayOfAllGroups;`. For more info on that, check out the documentation here: . The only problem with that is, I don't know if a group is on the Mac what a source is in iOS. – pasawaya Jul 26 '12 at 01:56
  • I've tried this API, but it only returns the groups under the sources. And when I try to get their "parentGroups", it just returns an empty array. – LYTTE_LJ Jul 26 '12 at 02:00

1 Answers1

1

I've checked the Apple's Document, it seems there's no way to get ExchangeSource data on the Mac, thanks anyway!

LYTTE_LJ
  • 79
  • 8