Old-style resource files in mach-o project
Old-style resource files in mach-o project
- Subject: Old-style resource files in mach-o project
- From: Jonny Taylor <email@hidden>
- Date: Mon, 05 Sep 2005 21:03:37 +0100
I'm trying to migrate an old CFM Carbon project to xCode. I've got
everything compiling and linking, but the app is failing at runtime because
there are resources that it expects to find which are not there.
The old app (build under CW) has both .rsrc and .r files whose contents end
up in the app's resource fork. The app is not bundled or anything like that.
The resources are then accessed by simply calling GetResource et al - there
is no need to explicitly open resource files or anything like that.
With the new app, Xcode doesn't report any errors about either the .rsrc or
.r files. The .rsrc file is copied to Contents/Resources, but the resultant
file has both the data and resource forks empty. Xcode doesn't seem to be
doing anything with the .r file at all.
Can anybody suggest (or point me to instructions describing) how I can get
these resources to be treated correctly under mach-o? I have to confess that
I know little or nothing about bundles, resources-in-data-forks, nibs etc.
I know that what I should really do is to bin all the old resources and work
with nibs instead. However, the resources are a very peripheral part of the
project I am migrating - the interesting part is straight C code that
doesn't use any mac APIs. Also it's only a tool for internal use, so I can't
justify spending any more than the minimum of time on this (I'm only
migrating it so I can debug effectively on Tiger). I'm therefore hoping to
be able to do this "the easy way" rather than "the proper way".
Understandably, there don't seem to be any example projects that show how to
do things "the easy way"!
Thanks in advance for any advice you can give on this
Cheers
Jonny
_______________________________________________
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