title: How to create and use bundles in cocoa?
body: <p>I have an application that I wrote that uses an external unix executable file. It needs to run this file in order to get some data needed for further processes.</p>
  
  <p>Right now this executable is located in my project folder and in order to use it in my app I have hardcoded paths to it (which is bad).</p>
  
  <p>I've heard that to avoid this hardcoded paths issue it's possible to use bundles. </p>
  
  <p>Can anyone explain me if this is the best way to achieve what I want, and direct me how to do it if so?!</p>
  
  <p>I already looked through similar questions on stackoverflow and went through this:
  <a href="https://developer.apple.com/library/mac/#documentation/CoreFoundation/Conceptual/CFBundles/Introduction/Introduction.html#//apple_ref/doc/uid/10000123i" rel="nofollow">https://developer.apple.com/library/mac/#documentation/CoreFoundation/Conceptual/CFBundles/Introduction/Introduction.html#//apple_ref/doc/uid/10000123i</a> </p>
  
  <p>it didn't really help me so far...</p>