• 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: How to put files in app bundle?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to put files in app bundle?


  • Subject: Re: How to put files in app bundle?
  • From: Michael Cinkosky <email@hidden>
  • Date: Wed, 2 Feb 2005 10:23:00 -0700


I just place files somewhere in the source directory structure (perhaps not necessary) and add them to the Resource group using the Add File command. Then use something like:

[[NSBundle mainBundle] pathForResource: @"myFile" ofType: @"pdf"]

to access the file in code. I have not tried to tinker with the contents of the bundle at run time. Why not use something in ~/Library for the run-time copies, which you could set up in the application itself?

Michael


On Feb 2, 2005, at 9:49 AM, Mark Dawson wrote:

When I build my app bundle, I'd like to put some files in the /Contents/Resources folder, along with create a /Contents/SharedSupport folder, and copy files into that folder. I didn't notice a "copy" build phase. Do I need to use the shell scripts to do what I want? Is there some other recommended way?
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >How to put files in app bundle? (From: Mark Dawson <email@hidden>)

  • Prev by Date: How to put files in app bundle?
  • Next by Date: Re: How to put files in app bundle?
  • Previous by thread: How to put files in app bundle?
  • Next by thread: Re: How to put files in app bundle?
  • Index(es):
    • Date
    • Thread