Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: accessing netinfo db from cocoa?




On Aug 31, 2008, at 4:57 AM, Kieren Eaton wrote:

Hi,

I am trying to find a way to access the netinfo DB from cocoa. Specifically the sharing (AFP, SMB, etc).
Pointers or ideas are much appreciated.


Hello,

Quick question: Are you using Leopard or Tiger machines? On Tiger, you can run the commands "niultil" or "nicl" to query the NetInfo database from your application. Note that in Leopard, Netinfo has been completely deprecated in favor of a local LDAP database. So, if you are using Leopard, run the command "dscl" from your application. In either case, you'll have to parse the command results in your app.

On Tiger, the path you want to query is...

/config/SharePoints/

On Leopard, the path you want to query is...

 /Local/Default/SharePoints

hope that helps,

Jaime Magiera

Sensory Research
http://www.sensoryresearch.net

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >accessing netinfo db from cocoa? (From: Kieren Eaton <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.