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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden