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(NSSearchPathDirectorydirectory,NSSearchPathDomainMaskdomainMask,BOOLexpandTilde)-
NSTemporaryDirectory NSString*NSTemporaryDirectory(void)-
NSUserName NSString*NSUserName(void)
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access