• 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: Matt Jaffa <email@hidden>
  • Date: Sun, 14 Mar 2004 00:13:34 -0700

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?

Thanks,
Matt


On Mar 13, 2004, at 11:25 PM, Clark Cox wrote:

On Mar 14, 2004, at 00:52, Matt Jaffa wrote:

Hi,

When I run my daemon that uses obj-C and using mutable arrays reading
from a plist,
it works all good as long as it is running as a user process.
But when i run it as root, using the sudo command, it crashes .

But *how* does it crash? Does it just quit? Does it SIGSEGV? SIGBUS? Is
there anything interesting in the crash log?

--
Clark S. Cox III
email@hidden
http://homepage.mac.com/clarkcox3/
http://homepage.mac.com/clarkcox3/blog/B1196589870/index.html

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.
_______________________________________________
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.


  • Follow-Ups:
    • Re: Cocoa/Foundation and CoreFoundation
      • From: "M. Uli Kusterer" <email@hidden>
    • Re: Cocoa/Foundation and CoreFoundation
      • From: Chris Ridd <email@hidden>
References: 
 >Cocoa/Foundation and CoreFoundation (From: Matt Jaffa <email@hidden>)
 >Re: Cocoa/Foundation and CoreFoundation (From: Clark Cox <email@hidden>)

  • Prev by Date: Re: storing default preferences
  • Next by Date: Re: Search & replace in nib files?
  • Previous by thread: Re: Cocoa/Foundation and CoreFoundation
  • Next by thread: Re: Cocoa/Foundation and CoreFoundation
  • Index(es):
    • Date
    • Thread