accessing netinfo db from cocoa?

2008-08-31 Thread Kieren Eaton
Hi, I am trying to find a way to access the netinfo DB from cocoa. Specifically the sharing (AFP, SMB, etc). know that server has the command line util 'sharing' for just this purpose. unfortunately this command is not available in the Client version of os x :( the reason i need this is

Re: accessing netinfo db from cocoa?

2008-08-31 Thread Phil
On Sun, Aug 31, 2008 at 8:57 PM, Kieren Eaton [EMAIL PROTECTED] wrote: I am trying to find a way to access the netinfo DB from cocoa. Specifically the sharing (AFP, SMB, etc). know that server has the command line util 'sharing' for just this purpose. unfortunately this command is not

Re: accessing netinfo db from cocoa?

2008-08-31 Thread Michael Watson
If you want to do it fast, without shell output parsing, and in a way that will work on 10.4 *and* 10.5, use the Directory Services C API. The downside is that it's more complex than many of the Cocoa APIs you're likely used to. Docs:

Re: accessing netinfo db from cocoa?

2008-08-31 Thread Kieren Eaton
If you want to do it fast, without shell output parsing, and in a way that will work on 10.4 *and* 10.5, use the Directory Services C API. The downside is that it's more complex than many of the Cocoa APIs you're likely used to. Docs: