• 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: Problems running UNIX Apps in Cocoa GUI
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems running UNIX Apps in Cocoa GUI


  • Subject: Re: Problems running UNIX Apps in Cocoa GUI
  • From: Alberto <email@hidden>
  • Date: Mon, 25 Mar 2002 13:26:17 -0300

On 25.03.2002 07:41, "Ondra Cada" <email@hidden> wrote:

> Actually it is happening, very far as possible. Where have you the cwd
> when a GUI app is launched via Dock or Finder, though? OTOH, if the app is
> launched from CLI, the cwd is set properly (to the cwd of the launching
> shell, of course).
>
> that's lie. The application knows where it really is, just the very same
> way as a tool knows that. The only problem is that
> - Finder or Dock set cwd to root, which is the most meaningful way
> possible;
> - you are confusing the executable path and cwd.

Thanx a lot...
This is very useful for my knowedges about Cocoa. I understand this in Sherm
email (here in the mail-list).


But anybody know how to solve this? How to make Cocoa Apps set the correct
cwd (the path where app really is).

Adam replied me:

> If you require that these files are created in the same directory as the
> actual tools, then use argv [0] in your command line tools which I think
> lets you get the directory you want.

But it is not working... my Cocoa App (Aqua Interface for UNIX CLI app)
continue looking for the CONFIG file in /, not in teh same path where CLI
app is.

Thanx a lot for your help...

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.

  • Follow-Ups:
    • Re: Problems running UNIX Apps in Cocoa GUI
      • From: Ondra Cada <email@hidden>
References: 
 >Re: Problems running UNIX Apps in Cocoa GUI (From: Ondra Cada <email@hidden>)

  • Prev by Date: Please take a look at Picturesque
  • Next by Date: Re: Problems running UNIX Apps in Cocoa GUI
  • Previous by thread: Re: Problems running UNIX Apps in Cocoa GUI
  • Next by thread: Re: Problems running UNIX Apps in Cocoa GUI
  • Index(es):
    • Date
    • Thread