Re: Core Endian errors with resources
Re: Core Endian errors with resources
- Subject: Re: Core Endian errors with resources
- From: Chris Espinosa <email@hidden>
- Date: Thu, 21 Sep 2006 22:12:33 -0700
On Sep 21, 2006, at 6:56 PM, Jeff Birac wrote: While building a Universal Binary of a PowerPlant app, the following error pops up (with a resource file)...
CoreEndianFlipData: error -4940 returned for rsrc type kind (id 128, length 54, native = no) file AppResources.rsrc: ### /Developer/Tools/ResMerger ERROR: errCoreEndianDataTooShortForFormat (resType 'kind' ID 1)
What's the problem? Does some padding need to be added to the rsrc file? (just a blind guess)
The problem is that resources are stored big-endian on disk, but need to be flipped to little-endian when read on an Intel machine in order to get things like integers, counts, etc. right. ResMerger reads each resource from each resource file and merges it into your application's final resource file, and the Resource Manager uses the CoreEndian flipper to get the bytes in the right order. CoreEndian is saying that there aren't enough bytes to flip, according to the formal definition of a 'kind' resource.
I'd run /Developer/Tools/DeRez -only 'kind' -I /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers AppResources.rsrc Finder.r to see how your resource is structured. Make sure that there are the correct number of strings for the count, that the string lengths are correct, and that the padding is there.
It could be that this is not really a Finder 'kind' resource at all, in which case you'd probably have to rename it to prevent the system flippers from choking on it.
Chris |
_______________________________________________
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