I have an ofx app that loads some images from disk at runtime. I use
ofImage::load() to load from a relative path. However this comes with the following disadvantages when I distribute the app (I am only interested in distributing for OSX):
- Relying on a relative path means I have to ship the
.apppackage AND a
data/folder containing the images. If the two are not in the same folder then image loading fails
- on OS X > 10.12 , the “quarantine flag” and “translocation” mean that the relative path will always fail for apps downloaded from the internet (see, e.g.: here).
To solve both issues above, it would be great if I could bundle the images INSIDE the
.app package. What is the best way of doing this with ofx?