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

temporaryDirectory

Returns the temporary directory for the current user.

homeDirectoryForCurrentUser

Returns the home directory for the current user.