FW: How to change path where Cocoa App is runnin?
FW: How to change path where Cocoa App is runnin?
- Subject: FW: How to change path where Cocoa App is runnin?
- From: Alberto <email@hidden>
- Date: Mon, 25 Mar 2002 18:02:14 -0300
Well... let me change the Subject... and exaplin exactly what's my problem
now.
I have an UNIX app located in path "/Library/Eref/", and a Cocoa app that is
simply a GUI for the UNIX app.
My Cocoa app can be located in any path... but it must be running in
"/Library/Eref/, where are binaries for my UNIX app.
Why?
Because the UNIX app has some config files, that are located in the same
path that binaries.
But as default Cocoa app runs in "/", and this make UNIX app think it's
running from "/", not from "/Library/Eref/".
So.. how to change path "where Cocoa app runs" ?
I tried argv[0], but did not work.
Thanx.
_______________________________________________
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.