Re: [newbie] path to file in resources
Re: [newbie] path to file in resources
- Subject: Re: [newbie] path to file in resources
- From: Andreas Mayer <email@hidden>
- Date: Fri, 18 Mar 2005 20:40:08 +0100
Am 18. Mrz 2005 um 20:28 Uhr schrieb simone gabbriellini:
Those files will be copied into my .app package into
Contents/Resources/myFile.html
How can I access those file with my code
NSString *path = [[NSBundle mainBundle] pathForResource:@"myFile"
ofType:@"html"];
I'm using this:
[[webInspector mainFrame] loadRequest:[NSURLRequest
requestWithURL:[NSURL
URLWithString:@"/Contents/Resources/index.html"]]];
[[webInspector mainFrame] loadRequest:[NSURLRequest
requestWithURL:[NSURL URLWithString:path]]];
Andreas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden