Re: How to get user ID (501, 502, etc.)
Re: How to get user ID (501, 502, etc.)
- Subject: Re: How to get user ID (501, 502, etc.)
- From: Stephan Cleaves <email@hidden>
- Date: Sat, 11 Nov 2006 08:21:44 -0500
This can be achieved with the SystemConfiguration framework. The key
State:/Users/ConsoleUser will return a dictionary containing the
short username, the user ID and group ID. The book Advanced Mac OS X
Programming has two examples that use the SC framework. ADC also
covers the framework.
Stephan
On Nov 10, 2006, at 10:01 PM, Jerry Krinock wrote:
How can I get the user ID number (501, 502, etc.) ?
It is not in -[NSProcessInfo environment]; I can't find any BSD
function
that gives it either.
Thanks,
Jerry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden