• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How do I access NetInfo from Cocoa?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >How do I access NetInfo from Cocoa? (From: "Josh M. Hurd" <email@hidden>)

  • Prev by Date: Re: (no subject)
  • Next by Date: Re: How do I access NetInfo from Cocoa?
  • Previous by thread: How do I access NetInfo from Cocoa?
  • Next by thread: Re: How do I access NetInfo from Cocoa?
  • Index(es):
    • Date
    • Thread