• 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: Ondra Cada <email@hidden>
  • Date: Mon, 25 Mar 2002 11:41:30 +0100

On Monday, March 25, 2002, at 04:22 , Alberto wrote:

Nope. It rather appears you think that GUI app should have its cwd set to
its bundle path, which is very definitely not true (and, actually, there
would be no reason for such behaviour).

See NSFileManager, and/or use absolute paths. Also check archives, this
occurs each few weeks ;)

All I think is that GUI should keep app working as I was in the
command-line, and it's not happening.

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).

It's doing something that my UNIX app thinks it's in the "/" folder, not
where it really is.

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.
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
2K Development: email@hidden http://www.2kdevelopment.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
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: Alberto <email@hidden>
References: 
 >Re: Problems running UNIX Apps in Cocoa GUI (From: Alberto <email@hidden>)

  • Prev by Date: Re: Problems running UNIX Apps in Cocoa GUI
  • Next by Date: Re: drawing efficiently
  • 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