• 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: Any way to "flatten" a resource file target on output?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Any way to "flatten" a resource file target on output?


  • Subject: Re: Any way to "flatten" a resource file target on output?
  • From: "Mills, Steve" <email@hidden>
  • Date: Mon, 01 Oct 2012 01:00:33 +0000
  • Thread-topic: Any way to "flatten" a resource file target on output?

On Sep 30, 2012, at 18:17, "Stephen Kay" <email@hidden> wrote:

> So I'm hoping to accomplish the same thing with Xcode now (using 2.5 because
> I'm working on this ancient CodeWarrior port):
> - build a resources target, from a bunch of resource files
> - have them merged into one file
> - "flatten that file" so that the resources are all moved into the data
> fork, and I can then use it in my Windows version ( which can read this kind
> of .rsr file).
>
> In Xcode, I've made a Carbon > Resources target, it just has a single build
> phase for "Build ResourceManager Resources"; I've dragged a bunch of
> resource files in there, and it indeed builds into a single merged .rsrc
> product.
>
> But it's not "flat"; all of the resources are in the resource fork (makes
> sense).

Technically, that is a "flat" file - all the resources are in one serialized file.

> But is there a Shell Sript command (or some setting) I could use to move the
> resource fork to the data fork (or whatever accomplishes that?)

Hmm, I assumed that the modern Xcode resource compiler would use the data fork instead of the resource fork. You should be able to either replace that build phase with a Run Script build phase, or just rejigger the compiled resource file with a Run Script build phase, using the DeRez and Rez commands. I'm not at a real computer right now to give you any more specifics, but Rez can specify which fork to use.

Steve via iPad



 _______________________________________________
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: 
 >Any way to "flatten" a resource file target on output? (From: Stephen Kay <email@hidden>)

  • Prev by Date: Building a dynamic library using Xcode
  • Next by Date: Re: Building a dynamic library using Xcode
  • Previous by thread: Any way to "flatten" a resource file target on output?
  • Next by thread: Building a dynamic library using Xcode
  • Index(es):
    • Date
    • Thread