Re: How do I access NetInfo from Cocoa?
Re: How do I access NetInfo from Cocoa?
- Subject: Re: How do I access NetInfo from Cocoa?
- From: Eric Peyton <email@hidden>
- Date: Mon, 8 Oct 2001 20:38:46 -0500
On Monday, October 8, 2001, at 08:02 PM, Josh M. Hurd wrote:
Is there a Cocoa class that allows access to NetInfo?
How can I retrieve user info from the NetInfo database? I need the UID
of any given username.
Look into the getpwnam system call. You do not need NetInfo access for
this. pw_uid is part of the returned struct.
man getpwnam
Eric
I searched the docs and found only <netinfo/ni.h> which did not import
into my project. Complained about variable redefinitions.
If someone has a quick example I would appreciate it!
Thanks!
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev