Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

pskpsk

macrumors newbie
Original poster
May 6, 2009
7
0
San Francisco
When we try to compile our DirectoryService plug-in on 10.6, we get the following warnings on some DirectorySerivce API calls:

<Routine>.c:264: warning: 'dsOpenDirService' is deprecated (declared at
/System/Library/Frameworks/DirectoryService.framework/Headers/DirServices.h:56)
<Routine>.c:275: warning: 'dsBuildListFromStringsAlloc' is deprecated
(declared at
/System/Library/Frameworks/DirectoryService.framework/Headers/DirServicesUtils.h:193)

It seems to be 'dsOpenDirService' is the FIRST API to call before you can perform any DirectoryService related APIs! Why does Apple deprecated this? Does anybody out know see this? If yes, do you know if there is a replacement API for these 2 deprecated functions?

Thanks for the help.

PSK
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.