adding multiple assets (resources) to a project
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