• 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
adding multiple assets (resources) to a project
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

adding multiple assets (resources) to a project


  • Subject: adding multiple assets (resources) to a project
  • From: email@hidden
  • Date: Thu, 26 Jun 2008 11:47:23 -0600 (MDT)
  • Domainkey-status: no signature
  • Importance: Normal

Hello,

I am working on a cocoa application in Xcode and I have a large number
of externally created resources organized in subfolders. eg:

assets
   accounting
     taxes
     refunds
     etc
   legal
     contracts
     ndas
     etc

Each leaf folder contains multiple files. all this stuff needs to be
copied in the app folder, preferably so that it can be accessed
through nsbundle.

When I add the assets folder to my projects as “existing files”, I have
two options:

- recursively create groups for any added folders
    This option flattens the folder structure, copying all files to
    the same directory.

- create folder references for any added folders
  This option works better because it retains the folder structure, but
  any time I add new files, I have to delete the top assets folder and add
  everything again because the new files are not added automatically to the
  “copy bundle resources” build stage.

  Another problem I have with this approach is that nsbundle doesn't
  find the files, I have to append the asset path to the path of
  mainbundle to get the correct path.

I'm pretty sure there is a simple and elegant solution for this, but I
can't figure it out. Any help would be appreciated.

thanks
lajos










 _______________________________________________
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: adding multiple assets (resources) to a project
      • From: Jens Alfke <email@hidden>
  • Prev by Date: struct align
  • Next by Date: Re: struct align
  • Previous by thread: Re: struct align
  • Next by thread: Re: adding multiple assets (resources) to a project
  • Index(es):
    • Date
    • Thread