I\'m developing a Cocoa Objective-C application that will run on Mac OS X. I need to get the full path of the current user\'s home directory:
/Users/MyUser/
NSHomeDirectory: “Returns the path to the current user’s home directory.”
Example:
NSLog(@"Current user’s home directory is %@", NSHomeDirectory());