Merging Resources & auto-resolving ID conflicts

Discussion in 'Mac Programming' started by wrldwzrd89, Dec 19, 2008.

  1. wrldwzrd89 macrumors G5

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #1
    I did some digging around and found a tool called ResMerger (in /Developer/Tools) that looks really useful for a task I'm trying to do. Unfortunately, it doesn't fix ID conflicts - instead, it just reports that there were resources with the same ID. What I'd like to do is automatically reassign the resource IDs across the various files before running ResMerger on them, but I haven't the foggiest idea how to do this. I suppose I could write a little command-line Carbon tool that does the job... I'm rather new to Mac OS X programming in general, at least with Xcode. I'm a Java developer, so all this Carbon/Cocoa stuff is new to me.

    Also, I don't care about most of the resources - only one type of resource interests me. If I need to run this again with a different resource type, I have no qualms about finding the type in the code and changing it.
     
  2. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    If this is for an existing project you're probably better off writing your own tool to do this. If this is a new project, I'd stop using resource files completely. There are much better alternatives now such as nibs, images, strings files, etc.
     
  3. wrldwzrd89 thread starter macrumors G5

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #3
    Yes, this I understand. I'm not writing a program that uses old-style resources. Instead, what I'm doing is the exact opposite - collating old-style resources so they can be mass-converted to the modern format.
     
  4. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #4
    What are the types of resources you're trying to extract?
     
  5. wrldwzrd89 thread starter macrumors G5

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #5
    System 7 sounds from old RoboWar robots.
     
  6. wrldwzrd89 thread starter macrumors G5

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #7

Share This Page