As mentioned, if you move the CW files from the PC to the MAC the resource fork
will be automagically integrated. As for getting the files to be recognized
correctly on the MAC system, use RscEdit (comes with CodeWarrior or the SDK, but
you need to unpack it). In any case, open each of the following files with
rscedit. A couple of them will tell you that there is no resource fork yet,
select yes to create one. Once the file is opened, select "Get Info" from the
"File" menu, and then change the TYPE and Creator ID to the following
(capital sensitive)
.mcp files type = MMPr ID = CWIE (also, cut off
the .mcp extension)
.c , .cpp and .h files type = TEXT ID = CWIE
.rsrc files type = PLob ID = MWCP
You can probably guess that CWIE is CodeWarrior and MWCP is constructor.
Now, moving things back from the MAC to the PC there are a few things you will
have to do. The .mcp file needs to be given the right extension, so rename it
adding the .mcp on the end. Now there will be finder.dat files everywhere, and
resource forks for everything. oh well. But the thing I find annoying is that if
on the MAC I had a resource file called realbigdog.rsrc (the file name is longer
then 8 characters and the extension is longer then 3), when I move it to the PC
-> in the Rsc director there will be realbigdog.rsrc, but the file in the
resource.frk subdirectory (that has the info in it) will be called realbi~1.rsr
. Such that if I was to just try and open the file realbigdog.rsrc with
constructor, it would look for a realbigdog.rsrc file in the resource.frk
folder - not find one - create a new one with nothing in it. The solution is of
course to first go find that dummy realbi~1.rsr file in the resource.frk folder
and rename it realbigdog.rsrc to match the name one directory up. You can keep
the name to 8 or less characters, but regardless, .rsrc will be truncated to
.rsr .
You will also want to remove the StarterSim target...
-Ezekiel Sanborn de Asis
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/