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.