It is not safe to assume that the name returned by NSUserName()
identifies the user
logged into the Mac OS X console. The user that started an
application could be
remotely logged in or logged in via a Unix shell. Cocoa does not
currently provide
any way to identify the user logged into the console. Apple provides
several techni-
cal notes on the subject. A Carbon function and example code to
identify the
current console user is available at <http://developer.apple.com/qa/
qa2001/qa1133.html>. Like all Carbon functions, it can be called from
Cocoa applications.
_______________________________________________
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