• 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: current working directory problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: current working directory problem


  • Subject: Re: current working directory problem
  • From: Chris Espinosa <email@hidden>
  • Date: Thu, 30 Sep 2004 15:49:52 -0700

On Sep 30, 2004, at 3:11 PM, Kaveh Kardan wrote:

I'm coming across an odd problem having to do with relative pathnames having different behaviors on different machines.

We are trying to load jpeg files using relative pathnames, and on different machines, we have to specify different pathnames for the same file. Here are the two different calls we need to make:

One machine A:
MAKE_TEXTURE_SHADER(floorShader, "../../projects/RPG/data/tex/tile.jpg");


On machine B:
MAKE_TEXTURE_SHADER(floorShader, "../projects/RPG/data/tex/tile.jpg");


The problem is that Xcode thinks that the current working directory is different on each machine. One machine A, it is inside the RPG.app folder, while on machine B it is at the level of RPG.app. We can see the difference by doing a call to:

  system("ls ..");

before trying to load the image.

In Xcode 1.5, select the executable (in the Executables group), choose Get Info, and in the first tab there's a control for what to set the working directory to for launch and debug. Give that a try.


Chris

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >current working directory problem (From: Kaveh Kardan <email@hidden>)

  • Prev by Date: Re: Newbie question: How do I keep animations going NSProgressIndicator...
  • Next by Date: "where is the..."
  • Previous by thread: current working directory problem
  • Next by thread: Re: Newbie question: How do I keep animations going NSProgressIndicator...
  • Index(es):
    • Date
    • Thread