Re: Cocoa/Foundation and CoreFoundation
Re: Cocoa/Foundation and CoreFoundation
- Subject: Re: Cocoa/Foundation and CoreFoundation
- From: Chris Ridd <email@hidden>
- Date: Sun, 14 Mar 2004 09:47:48 +0000
On 14/3/04 7:13 am, Matt Jaffa <email@hidden> wrote:
>
Ok I figured out what the problem was,
>
>
When I call NSHomeDirectory() in my app it returns /var/root
>
That is when i run the program as root,
>
When I call NSHomeDirectory() and it is running as the user, it
>
returns that users home directory,
>
>
>
Now I need to find a way to modifiy the code to return the Users home
>
directory of the current logged in user.
>
>
Know of any methods that will do this?
NSHomeDirectoryForUser() might be useful.
But what do you mean by the "current logged in user"?
Cheers,
Chris
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.