Getting the name of the current user
Getting the name of the current user
- Subject: Getting the name of the current user
- From: Serge Meynard <email@hidden>
- Date: Thu, 30 Aug 2001 22:46:22 -0400
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.
I suppose I could expand the home directory path and extract the last
component using NSString, but that feels like an ugly hack...
Serge
========================================
A conclusion is the place where you got tired of thinking.