Re: Getting current user short name
Re: Getting current user short name
- Subject: Re: Getting current user short name
- From: Erik Buck <email@hidden>
- Date: Tue, 7 Nov 2006 19:34:15 -0500
NSUserName()
NSFullUserName()
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:
This email sent to email@hidden