• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[newbie] path to file in resources
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[newbie] path to file in resources


  • Subject: [newbie] path to file in resources
  • From: simone gabbriellini <email@hidden>
  • Date: Fri, 18 Mar 2005 20:28:37 +0100

Hello List,
I need a simple hint... I have to access some files I add in the Resources folder of my project. Those files will be copied into my .app package into Contents/Resources/myFile.html

How can I access those file with my code (the file I'm talking about is an HTML file I have to load in a webView at startup)?

I'm using this:

[[webInspector mainFrame] loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"/Contents/Resources/index.html"]]];

But it doesn't work , cause it doesn't find the file :(

Cheers,
simone
 _______________________________________________
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

  • Follow-Ups:
    • Re: [newbie] path to file in resources
      • From: Andreas Mayer <email@hidden>
    • Re: [newbie] path to file in resources
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Sweetwater Toolkit
  • Next by Date: (newbie question) Putting special characters in NSStrings
  • Previous by thread: Sweetwater Toolkit
  • Next by thread: Re: [newbie] path to file in resources
  • Index(es):
    • Date
    • Thread