• 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: Jim Ways <email@hidden>
  • Date: Mon, 26 Jul 2004 10:41:51 -0700 (PDT)

But if i call NSHomeDirectoryForUser(NSUserName) wont
i get the same problem? Because it will just return
the root user? How can i find out what user will be
logged in? Will it work if i use a
stringByExpandingTildeInPath instead?

--- J Nozzi <email@hidden> wrote:
> 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.
>
>



__________________________________
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
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.


  • Follow-Ups:
    • Re: Startup Questons
      • From: J Nozzi <email@hidden>
References: 
 >Re: Startup Questons (From: J Nozzi <email@hidden>)

  • Prev by Date: Re: IB - Howto connect NSTextview in NSScrollView
  • Next by Date: What happened to my logging output ?!
  • Previous by thread: Re: Startup Questons
  • Next by thread: Re: Startup Questons
  • Index(es):
    • Date
    • Thread