How to keep individual resource-based files as separate files inside the /Resources folder?
How to keep individual resource-based files as separate files inside the /Resources folder?
- Subject: How to keep individual resource-based files as separate files inside the /Resources folder?
- From: Stephen Kay <email@hidden>
- Date: Mon, 13 Aug 2012 19:39:28 -0400
- Thread-topic: How to keep individual resource-based files as separate files inside the /Resources folder?
(Using XCode 2.4.1 on 10.4.11 to port an old CodeWarrior project that is
resource-based.)
I have some large binary files (actually they are basically .rsrc files, but
are not identified as such by the extension) that are supposed to end up in
my .app/Resources folder. They essentially have most of the data in the
resource fork as resources.
They need to remain as separately-named resource files, not be merged into
the main app's resource file.
If I just copy them to the .app/Resources folder with a Copy Files phase,
the resource forks get stripped.
I read that this is normal; you have to identify the files as resource files
and include them in a "Build ResourceManager Resources" phase.
A post on here from 2006 states:
http://lists.apple.com/archives/carbon-dev/2006/Aug/msg00645.html
"Almost every Carbon app being ported to Xcode will be using the Resource
Mgr, so the simplest way forward is to drag your resource- fork-based .rsrc
file into the Xcode Resources group, select the target, add a Resource
Manager build phase from the Project menu, and drag the .rsrc file from the
resources group into the Resource Manager build phase group. When building,
Xcode will automatically copy the resource-fork-based data into an
identically-named data fork file within the bundle's Resources folder, where
Resource Manager APIs can find it automatically."
However, it does not seem you can have more than one "Build ResourceManager
Resources" phase. I already have one, that has 5 or 6 different .rsrc and
.ppob files in it that all get merged into the mainApp.rsrc file.
So how do I included these other files that need to be managed as separate
resource-based files?
Thanks,
- Stephen
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Stephen Kay
Karma-Lab :: developers of KARMA
http://www.karma-lab.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
_______________________________________________
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