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: Kurt Revis <email@hidden>
- Date: Thu, 30 Aug 2001 20:02:11 -0700
Is there an API in Cocoa (or Carbon I guess) to get the name of the
current
user under OS X? Searching the apple docs got me nothing.
Use the function NSUserName(), which is in Foundation. This is
documented in the "Functions" section of the HTML documentation, which
is very easy to overlook.
(I wonder how many answers this question will get? No one's answered it
yet, but surely we're all typing away at the same time...)
--
Kurt Revis
email@hidden