• 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: Creating a Resource Folder in Bundle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating a Resource Folder in Bundle


  • Subject: Re: Creating a Resource Folder in Bundle
  • From: Christiaan Hofman <email@hidden>
  • Date: Thu, 10 Jun 2010 19:07:32 +0200

On Jun 10, 2010, at 18:52, Gordon Apple wrote:

> What I want, ideally, is to specify a folder (sub-directory) in resources,
> preferably without having to import all its content files into the project,
> but have that folder and its contents included in the bundle.  (iPhoneOS
> 3.2)
>
> At run-time, I want to be able to read the contents of this resource folder
> into the program.  This could be a folder of images, a folder of text files,
> etc.  The read part I can handle.  It's getting the folder and its contents
> into the bundle that I don't know how to do -- especially since iPhoneOS
> tends to flatten everything.
>
> I know -- RTFM.  I'm trying that, but really just need a simple solution to
> what should be a simple problem.  Is there a simple solution I've missed?

Add a Copy Files build phase to the target. Or add the folder to the Resources, though that will copy all its content.

Christiaan

 _______________________________________________
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

  • Follow-Ups:
    • Re: Creating a Resource Folder in Bundle
      • From: Christiaan Hofman <email@hidden>
References: 
 >Creating a Resource Folder in Bundle (From: Gordon Apple <email@hidden>)

  • Prev by Date: Creating a Resource Folder in Bundle
  • Next by Date: Re: Creating a Resource Folder in Bundle
  • Previous by thread: Creating a Resource Folder in Bundle
  • Next by thread: Re: Creating a Resource Folder in Bundle
  • Index(es):
    • Date
    • Thread