Ok so it seems this is the correct way to print the path:
Code:
NSString* info = [[NSBundle mainBundle] pathForResource:@"test" ofType:@"html"];
so that will give me the path which is excellent, but when I try that for my "test.
js" file, it just prints an empty string, so I'm assuming that means my
js file cannot be found.
Now I notice when building my project, I get this warning about the
js file:
warning: no rule to process file '$(PROJECT_DIR)/test.
js' of type text for architecture i386
so is the simulator considering the
js file as not present? How can I resolve that warning? I get it if I change the extension to .txt as well. Doesn't appear for .html files though.
Thankyou