• 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: Gordon Apple <email@hidden>
  • Date: Thu, 10 Jun 2010 12:41:52 -0500
  • Thread-topic: Creating a Resource Folder in Bundle

Ah, ha!  Something I never knew.  I did that and it works. Just what I was
hoping for -- simple answer for a simple problem.  Muchas gracias, spasibo,
merci beaucoup.


On 6/10/10 12:22 PM, "Christiaan Hofman" <email@hidden> wrote:

>
> On Jun 10, 2010, at 19:07, Christiaan Hofman wrote:
>
>>
>> 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
>>
>
> That last remark apparently seems to be exactly what you want, so you should
> indeed do the latter. Make sure you choose "Create folder reference for any
> added folders" in the sheet you get when you drop the folder in the Resources
> group, as that will add the folder itself rather than its content to the
> project (you will /see/ the current content in the project, but that's only
> for display and is dynamically generated, it's not really saved in the
> project.)
>
> 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

References: 
 >Re: Creating a Resource Folder in Bundle (From: Christiaan Hofman <email@hidden>)

  • Prev by Date: Re: Xcode implicitly uses includes of frameworks which are not linked?
  • Next by Date: Re: Xcode implicitly uses includes of frameworks which are not linked?
  • Previous by thread: Re: Creating a Resource Folder in Bundle
  • Next by thread: "symbols hidden by default" causing runtime crashes
  • Index(es):
    • Date
    • Thread