Re: UNIX cli apps with Aqua GUI
Re: UNIX cli apps with Aqua GUI
- Subject: Re: UNIX cli apps with Aqua GUI
- From: Alberto <email@hidden>
- Date: Mon, 25 Mar 2002 15:48:56 -0300
On 25.03.2002 15:25, "Eric Peyton" <email@hidden> wrote:
>
If your unix binaries are packaged with your Cocoa application then you
>
will need to tell the Cocoa app where to find the unix binaries.
>
>
The location of the GUI app is always [[NSBundle mainBundle] path].
>
>
A better way to do this - which I told you two days ago, is to bundle
>
the unix tools inside the Cocoa app as Resources. Then you can use
>
[[NSBundle mainBundle] pathOfResource:@"<unix app name>" ofType:@""];
>
>
You might want to look at the Moriarty example that Apple has on it's
>
developer site.
>
>
Trying to reset the cwd is the wrong way to approach this.
>
>
Eric
But Eric... UNIX binaries are not packaged with my Cocoa App.
Why? Because I am not able to change the UNIX binaries.
I am ONLY developing an Aqua GUI... and I want that if people who made UNIX
binaries change their version... I do not need to redo my Cocoa App. People
only d/l new UNIX binaries and upgrade them in Mac OS X.
UNIX binaries are located in /Library/Eref/...
And all I need is make the Cocoa App (GUInterface for UNIX App) reconizes as
its path, not "/", but the same path where is located and from where is
running the UNIX App.
Do you understand?
Why I need this? Because if anybody else want to use my Cocoa source, later,
to create an Aqua GUI for another UNIX App, they don't need to make changes
in UNIX App, only in Cocoa source (putting the path for the UNIX app).
Moriarty sample is much simple... I used it, but it only execute a command
in CLI and show the result. I use this to execute my UNIX app and show the
startup message. But my UNIX app has some configuration files, and log
files. Log files problem I solved, but Cocoa App continue looking for config
files in "/", not from where it's running the UNIX app "/Library/Eref/".
Thanx,
Alberto V. M.
_______________________________________________
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.