• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Cocoa/Foundation and CoreFoundation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Re: Cocoa/Foundation and CoreFoundation (From: Matt Jaffa <email@hidden>)

  • Prev by Date: Re: NSTimer discarding exception 'NSInternalInconsistencyException'
  • Next by Date: Re: NSTimer discarding exception 'NSInternalInconsistencyException'
  • Previous by thread: Re: Cocoa/Foundation and CoreFoundation
  • Next by thread: Re: Cocoa/Foundation and CoreFoundation
  • Index(es):
    • Date
    • Thread