On Thu, Jun 5, 2008 at 10:37 PM, Mark Bateman <[EMAIL PROTECTED]> wrote: > I'm now trying to use NSBundle to insert the resource location string for a > webview. I'm using locally stored content inside the app bundle. I tried > using: > > NSMutableString *url; > url = [NSBundle pathForResource: @"AirportInfoPDA"]; > > I can't tell if this returns the full path including the filename & > extension as the program now crashes.
There's no such method for NSBundle. Take a look at the API for the NSBundle class- you need one of the pathForResource:ofType: methods. You probably want: url = [[NSBundle mainBundle] pathForResource:@"AirportInfoPDA" ofType:@"extension"]; -- - David T. Wilson [EMAIL PROTECTED] _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
