Re: Including resources with a shared library
Re: Including resources with a shared library
- Subject: Re: Including resources with a shared library
- From: Philip Aker <email@hidden>
- Date: Mon, 31 May 2004 08:14:42 -0700
On Monday, May 31, 2004, at 06:24 US/Pacific, Brian Greenstone wrote:
I'm building a plug-in for Maya 6, and I've switched from CFM on
CodeWarrior to Mach-o with Xcode. One major problem that's come up is
that Xcode won't let me include old style Resources (.rsrc) in the
file it outputs. It lets me include the .rsrc file in the project,
and it never spits out any errors or warnings, but the final file has
no resource fork.
I'd also like to update this old plug-in to use .nib's instead of
.rsrc's, but I haven't found any way to make a package out of a shared
lib, so what's the recommended way to include nib resources in a
shared lib with Xcode?
Hi Brian,
You'll probably want to use a bundle target with a custom creator type
and file type. It might be easiest to switch the target type to a
"Shared Library Package" in CodeWarrior and then import that into
Xcode. Otherwise just create a bundle target project in Xcode and add
your source and nib files to it. You'll probably have to create .exp
file for the bundle if there are callbacks involved.
Resources are normally kept in a data fork resource file in the output
bundle. The path will look like:
"/Contents/Resources/TARGET_NAME.rsrc". These resources are accessible
by normal Resource Manager calls (read only).
There's a utility written by Chris Silverberg called MakeBundle that
will format your old-style shared library into a bundle and give you an
idea of what a library package looks like:
<http://maccentral.macworld.com/news/2003/03/17/makebundle/
index.php?redirect=1085989371000>
Philip Aker
http://www.aker.ca
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.