• 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
Re: [newbie] path to file in resources
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >[newbie] path to file in resources (From: simone gabbriellini <email@hidden>)

  • Prev by Date: Re: [newbie] path to file in resources
  • Next by Date: Re: NSStatusItem having action and menu
  • Previous by thread: Re: [newbie] path to file in resources
  • Next by thread: (newbie question) Putting special characters in NSStrings
  • Index(es):
    • Date
    • Thread