Infrequently Asked Questions
These questions were written for the FAQ but nobody asked them, so they got moved here to reduce clutter.

Back to the FAQ

  1. What's the working directory of a .app?
    It is unspecified. In practice it will depend on what your parent process sets it to before it starts your process. Since you generally don't control the parent process, you don't control your working directory. So you must never rely on it. If your goal is to access some resource that is stored within or relative to your .app bundle, the CFBundle and NSBundle APIs will allow you to construct absolute paths pointing to the necessary place.

introduction - channel information - f.a.q - links - rules