• 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: Application runs in xcode but not on its own
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Application runs in xcode but not on its own


  • Subject: Re: Application runs in xcode but not on its own
  • From: Nick Zitzmann <email@hidden>
  • Date: Wed, 25 Feb 2004 00:11:34 -0800

On Feb 24, 2004, at 11:50 PM, Jeremyah Payne wrote:

Well cleaned, no zero link, but i do rely on one file for now. It will end up being around 100+ after my artists get done. When in xcode mode the file is in the build folder, I haven't touched the file at all should it not be in the same folder as the app if i say load "file"?

System 7 just called you and wanted its tradition back. <;*) Ideally, if your application relies on one file to run, then that file should be inside the application's bundle, probably in its Resources directory. Then you can get its path by using either the CFBundle or NSBundle APIs.


You should never rely on the PWD being set in a certain way, because you never know when it's going to be different. Xcode sets the application's PWD to the build folder, but the Finder always sets it to / (the root of the boot disk). And if someone runs the application by executing it from the CLI, it might just be different again...

Nick Zitzmann
<http://seiryu.home.comcast.net/>
<http://www.freshlysqueezedsoftware.com/>
S/MIME signature available upon request

UNIX: Where /sbin/init is Job #1.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.


References: 
 >Re: Application runs in xcode but not on its own (From: Raghunatha Reddy <email@hidden>)
 >Re: Application runs in xcode but not on its own (From: Jeremyah Payne <email@hidden>)
 >Re: Application runs in xcode but not on its own (From: Nick Zitzmann <email@hidden>)
 >Re: Application runs in xcode but not on its own (From: Jeremyah Payne <email@hidden>)

  • Prev by Date: Re: inline assembly
  • Next by Date: Re: inline assembly
  • Previous by thread: Re: Application runs in xcode but not on its own
  • Next by thread: path to dylib
  • Index(es):
    • Date
    • Thread