• 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: Startup Questons
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Startup Questons


  • Subject: Re: Startup Questons
  • From: J Nozzi <email@hidden>
  • Date: Mon, 26 Jul 2004 12:42:08 -0400

If you're not logged in as the user in question, you probably need to use NSHomeDirectoryForUser() rather than NSHomeDirectory().

- J

On Jul 26, 2004, at 12:23 PM, Jim Ways wrote:

NSHomeDirectory() stringByAppendingPathComponent:

It works completly fine and normal when it is run in
the directory outside of startup (as if a double click
it) But when it runs at startup with root access it
cant seem to read in that file.

--- Larry Fransson <email@hidden> wrote:
On Jul 26, 2004, at 06:17, Jim Ways wrote:

Its a startup bundle and is running with root
privligies. It is unable to use the command
initWithContentsOfFile: I was assuming it could
not
access the files during startup for one reason or
another. Am I not providing the right requirements
in
the startup parameters for the file perhaps?

The first thing to look at is the file path. What
does it look like?
If there is a tilde (~) in the path, you'll have to
expand that.

Larry Fransson
Seattle, WA
_______________________________________________
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.






__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail
_______________________________________________
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: Startup Questons
      • From: Jim Ways <email@hidden>
References: 
 >Re: Startup Questons (From: Jim Ways <email@hidden>)

  • Prev by Date: Re: Is there a delegate method -willDoExposeAllAppWindows or something?
  • Next by Date: Re: Cocoa Java
  • Previous by thread: Re: Startup Questons
  • Next by thread: Re: Startup Questons
  • Index(es):
    • Date
    • Thread