I'm having trouble with AddResource() only in the Mach0 version of my app.
The app is an application package built with CW8.3 in C.
Here's the code that works in a PPC OS 9 version (outline):
UseResFile(gAppResFileNum); <-- gotten at program startup with CurResFile()
size = *resourceData;
handle = NewHandle(size);
BlockMoveData(resourceData + 1, *handle, size);
AddResource(handle, resourceType, resourceID, "\p");
AddResource fails with ResError of -61.
This works fine in the PPC version.
I think I'm not understanding something about application packages and