Re: Getting the name of the current user
Re: Getting the name of the current user
- Subject: Re: Getting the name of the current user
- From: Ondra Cada <email@hidden>
- Date: Fri, 31 Aug 2001 12:24:40 +0200
Serge,
>
>>>>> Serge Meynard (SM) wrote at Thu, 30 Aug 2001 22:46:22 -0400:
SM> Is there an API in Cocoa (or Carbon I guess) to get the name of the
SM> current user under OS X? Searching the apple docs got me nothing.
You should consider a better search tool, then. You have used something like
Sherlock, haven't you? For shame...
=== cut here (Foundation Functions) ===
NSUserName
This function gets information about a user.
NSString *NSUserName(void)
Returns the logon name of the current user.
See also NSFullUserName, NSHomeDirectory, NSHomeDirectoryForUser
=== cut here ===
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc