Instance Method

homeDirectoryForUser:

Returns the home directory for the specified user.

Declaration

- (NSURL *)homeDirectoryForUser:(NSString *)userName;

Parameters

userName

The username of the owner of the desired home directory.

Return Value

A URL object containing the location of the specified user’s home directory, or nil if no such user exists or the user’s home directory is not available.

See Also

Accessing User Directories

homeDirectoryForCurrentUser

The home directory for the current user.

NSHomeDirectory

Returns the path to either the user’s or application’s home directory, depending on the platform.

NSUserName

Returns the logon name of the current user.

NSFullUserName

Returns a string containing the full name of the current user.

NSHomeDirectoryForUser

Returns the path to a given user’s home directory.

temporaryDirectory

The temporary directory for the current user.

NSTemporaryDirectory

Returns the path of the temporary directory for the current user.