• 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: ResMerger failure
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re: ResMerger failure


  • Subject: re: ResMerger failure
  • From: George Warner <email@hidden>
  • Date: Wed, 19 Mar 2008 11:38:20 -0700
  • Thread-topic: ResMerger failure

On Wed, 19 Mar 2008 10:53:37 -0700, Howard Moon <email@hidden>
wrote:
>  both I and a fellow programmer (on completely separate projects)
> have recently noticed an odd thing happening with Xcode (2.4.1, in
> Tiger), when it's running ResMerger.  Sometimes, for no apparent
> reason, it reports a failure.
>
>  The details suggest that it failed to find something .rsrc file (a
> file created with Resourcerer which contains some bitmaps, cursors,
> etc.).  (The missing item isn't anything we actually have in that
> file, and we have no idea why it's looking for it in the first place!)

Is it an old-school resource fork based resource file? Or a new-school data
fork based resource file? You can use "DeRez <old_file> | Rez -useDF -o
<new_file>" in the terminal to convert a resource fork based resource file
into a data fork resource file. While you're doing that you might consider
an intermediate step of capturing the the DeRes info into a ".r" file and
looking thru it to see if there are resources that might be better sourced
from the ".r" file rather than stored in a resource file. To do this you'll
want to use the system resource definition files when you DeRes:

term> alias derez "/usr/bin/DeRez $1    \
           /Developer/Headers/FlatCarbon/MacTypes.r $2"
term> alias rez   "/usr/bin/Rez $1      \
           /Developer/Headers/FlatCarbon/MacTypes.r -useDF $2"

term> derez <old_file.rsrc> > <old_file.r>

Now you can split the <old_file.r> file into two files: one for text based
resource (like "DLOG", "WIND", etc.) and one for data based resources (like
"PICT", "SND ", etc.). Add the text based resource source ".r" file into
your project and then re-rez the data based resource file back into a
(.rsrc) resource file (this time data fork based) and add that to your
project.

--
Enjoy,
George Warner,
Schizophrenic Optimization Scientist
Apple Developer Technical Support (DTS)



 _______________________________________________
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

  • Prev by Date: Animation in Size Inspector fo IB 3.x
  • Next by Date: Re: Unit Testing not displaying failed case text/line
  • Previous by thread: Re: ResMerger failure
  • Next by thread: Animation in Size Inspector fo IB 3.x
  • Index(es):
    • Date
    • Thread