Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 11-26-2008, 03:07 PM   #2 (permalink)
markww
Registered Member
 
Join Date: May 2008
Location: New York City, NY
Posts: 178
Default

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
markww is offline   Reply With Quote
 

» Advertisements
» Online Users: 737
13 members and 724 guests
Bertrand21, betterlee, chiataytuday, Inupgames, kampftrinker, Macaret, nidie, soonw29, srishtimehta, superblooddrainer, wilsonn44, wodanbrlam
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,826
Threads: 89,207
Posts: 380,637
Top Poster: BrianSlick (7,129)
Welcome to our newest member, wilsonn44
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:51 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.