Pulling bits out of .rsrc files

  • Is there a tool on OS X to do this?

    I'd like to pull some pieces of out some system .rsrc files.

    Thanks

    Scott
  • At 8:32 PM -0500 1/31/01, Scott Anguish wrote:
    >
    > I'd like to pull some pieces of out some system .rsrc files.
    > Is there a tool on OS X to do this?

    Carbon Resource Manager.

    -pmb

    --
    "Every time you provide an option, you're asking the user to make a decision.
    That means they will have to think about something and decide about it.
    It's not necessarily a bad thing, but, in general, you should always try to
    minimize the number of decisions that people have to make."
    http://joel.editthispage.com/stories/storyReader$51
  • I won't ask what you're doing in the system .rsrc files <grin>. I don't
    know if Resourcer for Carbon has actually shipped yet. They had a
    presence at MacWorld, but we got to discussing other things and I forgot
    to ask. That would be the best tool. Short of that, you can convert the
    system data fork based resources into something you could open with
    ResEdit (in Classic).

    The command to convert them is:

    /Developer/Tools/ResMerger -srcIs DF -dstIs RSRC someDataResource -o
    someResourceResource.rsrc

    Scott.

    On Wednesday, January 31, 2001, at 05:32  PM, Scott Anguish wrote:

    > Is there a tool on OS X to do this?
    >
    > I'd like to pull some pieces of out some system .rsrc files.
    >
    > Thanks
    >
    > Scott
    > _______________________________________________
    > MacOSX-dev mailing list
    > <MacOSX-dev...>
    > http://www.omnigroup.com/mailman/listinfo/macosx-dev
  • /Developer/Tools/Derez is available.  See developer.apple.com for
    documentation.  The -useDF option is for data-fork resource files.

    Douglas Davidson
  • On Wednesday, January 31, 2001, at 08:45 PM, Scott Herz wrote:

    > I won't ask what you're doing in the system .rsrc files <grin>.

    Just lookin.. :-) (I want to build my own button maker app to make Aqua buttons... and I'm assuming that if I look long enough.. I'll find it.. :-)

    > I don't
    > know if Resourcer for Carbon has actually shipped yet. They had a
    > presence at MacWorld, but we got to discussing other things and I forgot
    > to ask. That would be the best tool. Short of that, you can convert the
    > system data fork based resources into something you could open with
    > ResEdit (in Classic).
    >
    > The command to convert them is:
    >
    > /Developer/Tools/ResMerger -srcIs DF -dstIs RSRC someDataResource -o
    > someResourceResource.rsrc
    >
    > Scott.
    >
    > On Wednesday, January 31, 2001, at 05:32  PM, Scott Anguish wrote:
    >
    >> Is there a tool on OS X to do this?
    >>
    >> I'd like to pull some pieces of out some system .rsrc files.
    >>
    >> Thanks
    >>
    >> Scott
    >> _______________________________________________
    >> MacOSX-dev mailing list
    >> <MacOSX-dev...>
    >> http://www.omnigroup.com/mailman/listinfo/macosx-dev
    > _______________________________________________
    > MacOSX-dev mailing list
    > <MacOSX-dev...>
    > http://www.omnigroup.com/mailman/listinfo/macosx-dev
    >
  • >
    > I won't ask what you're doing in the system .rsrc files <grin>.

    Just lookin'

    > I don't
    > know if Resourcer for Carbon has actually shipped yet. They had a
    > presence at MacWorld, but we got to discussing other things and I forgot
    > to ask. That would be the best tool. Short of that, you can convert the
    > system data fork based resources into something you could open with
    > ResEdit (in Classic).
    >
    > The command to convert them is:
    >
    > /Developer/Tools/ResMerger -srcIs DF -dstIs RSRC someDataResource -o
    > someResourceResource.rsrc
    >
    >

    For anyone else playing with this, ResMerger is a real NAG about where the files are...  I've had to copy the .rsrc files into the same place I want to generate the dual forked file.  trying to use absolute paths has been unhelpful.
  • >> I won't ask what you're doing in the system .rsrc files <grin>.
    >
    > Just lookin.. :-) (I want to build my own button maker app to make Aqua
    > buttons... and I'm assuming that if I look long enough.. I'll find it.. :-)

    Well, you could have asked that first. :)

    The Aqua theme widgets are in Extras.rsrc (in the Resources of
    HIToolbox.framework). They're pxm# resources, which are a rather bizarre
    indexed pixmap format. You'll find lots of info about it and pointers to
    resources in the Mac OS X - General forum at MacNN.com -- the thread to
    follow is called "Customizing OS X" and is always near the top.

    What would be much cooler for such a tool would be to dynamically generate
    the pixmaps it'd use to create a button image. I get my fully alpha-ized
    images of standard widgets using a rather methodical procedure in IB... it'd
    rock if someone found a way to automate it in Cocoa, but I don't grok
    NSImage/NSView well enough yet.

    --
    Rick Roe
        Webmeister & Icon Dude
        http://www.icons.cx/