These functions are used to get filesystem paths to common files and directories such as the current user's home directory. NSFullUserName is used to obtain the long username of the current username, while NSUserName returns a user's short username.
NSString *NSFullUserName(void)
NSString *NSHomeDirectory(void)
NSString *NSHomeDirectoryForUser(NSString *userName)
NSString *NSOpenStepRootDirectory(void)
NSArray *NSSearchPathForDirectoriesInDomains(NSSearchPathDirectory directory, NSSearchPathDomainMask domainMask, BOOL expandTilde)
NSString *NSTemporaryDirectory(void)
NSString *NSUserName(void)