mulitple rsrc files in xcode

I have multiple rsrc files from an old program. These files overlap , so I have multiple copies of PICT 999. In MetroWerks, we could order the rsrc fils so that the last takes precidence... is there a way to do this in xcode?

thanks

Mac Mini, Mac OS X (10.5.3)

Posted on Aug 21, 2008 2:21 PM

Reply
9 replies

Aug 22, 2008 8:23 AM in response to RickMaddy

No. I NEED all three resources because they all have things that I need. The later ones are subsets of the earlier ones, over-riding only part.

Think of it as an inheritance hierarchy. I have the Superclass rsrc, and as subclass, and then a subclass of that. Each one over-rides parts of the previous. I need some way of representing that relationship in xcode.

Aug 22, 2008 10:01 AM in response to Brian Postow

Brian Postow wrote:
Think of it as an inheritance hierarchy. I have the Superclass rsrc, and as subclass, and then a subclass of that. Each one over-rides parts of the previous. I need some way of representing that relationship in xcode.


I think of that as a serious design flaw. Resource files were never meant to be used that way, and as of roughly 8 years ago, they're not meant to be used at all. You're probably going to have to write your own build phase for this.

Aug 22, 2008 10:15 AM in response to orangekay

Actually, (I wasn't writing mac software before 8 years ago) my impression is that they WERE intended to be used that way, and metroWerks had a way to order them so that you could do this...

As to whether they've been obsoleted, well, yeah, welcome to my world. I'm also working with fspecs, unsigned char strings, volumes numbers, and lots of other system 9 crap. Such is the life of someone working with legacy code...

Aug 22, 2008 10:56 AM in response to Brian Postow

If I recall correctly, CodeWarrior would have generated duplicate resource warnings up the wazoo every time you built. I don't remember what MPW did, but suffice to say that this build system is too tightly coupled to one specific (discontinued) product to be readily portable. I had to maintain Think-C projects well into the early 00s so I can certainly commiserate, but if you want to move this over to Xcode this late in the game you're going to have to make some significant changes. I'd suggest factoring all the common resources out into separate files and creating new files to hold all the target specifics.

Aug 22, 2008 11:35 AM in response to Brian Postow

I have found my solution. I think.

In case anyone else was curious, here's how it works: When you add resources to your target, they get added to a queue. The first in is the first one looked at, the last one is the last one looked at (which, IMHO is totally backwards, but anyway).

The solution to re-order is to uncheck the resources, and then re-check them.

Let's hear it for random button clicking!

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

mulitple rsrc files in xcode

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.