How do you access a file from inside an app directory

77 Views Asked by At

When using NSBundle, is there a macro such as $(APP_BUNDLE) or something similar, so that I can use a specific file?

1

There are 1 best solutions below

0
CRD On BEST ANSWER

You might be looking for NSBundle.mainBundle which returns a reference to the NSBundle for the application. Using this and the various instance methods provided by NSBundle you may then determine the paths/URLs of the files packaged within the application bundle.