10.11 Path Utilities

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.

NSFullUserName

NSString *NSFullUserName(void)

NSHomeDirectory

NSString *NSHomeDirectory(void)

NSHomeDirectoryForUser

NSString *NSHomeDirectoryForUser(NSString *userName)

NSOpenStepRootDirectory

NSString *NSOpenStepRootDirectory(void)

NSSearchPathForDirectoriesInDomains

NSArray *NSSearchPathForDirectoriesInDomains(NSSearchPathDirectory directory, NSSearchPathDomainMask domainMask, BOOL expandTilde)

NSTemporaryDirectory

NSString *NSTemporaryDirectory(void)

NSUserName

NSString *NSUserName(void)



    Part II: API Quick Reference
    Chapter 13. Foundation Classes