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/
Since macOS 10.12 you can also use FileManager.default.homeDirectoryForCurrentUser, see the documentation.
FileManager.default.homeDirectoryForCurrentUser