Re: linking with a PEF stub library
Re: linking with a PEF stub library
- Subject: Re: linking with a PEF stub library
- From: George Warner <email@hidden>
- Date: Wed, 17 Nov 2004 09:22:07 -0800
On Wed, 17 Nov 2004 00:34:25 -0800, daniel <email@hidden> wrote:
> The less pessimistic answer is that you can almost certainly use
> CFBundle to load the code out of the CFM library (not the stub
> library!) at runtime. You just need to be able to find the actual CFM
> library at runtime, point CFBundle at it, and ask for entry points by
> name.
A little more detail here (more pessimistic? ;-)
CFBundle can't open the CFM library file directly; It does have to be in a
bundle. But this isn't a show stopper because a minimal bundle is very easy
to make. Just put your CFM library in a "MacOS" folder in a "Contents"
folder in a "MyLibrary.cfm" folder with a (minimal) info.plist in the
"Contents" folder also and then CFBundle will recognize and open it.
Easier, if you're using CodeWarrior (9?) just change your libraries target
type to "Shared Library Bundle".
If you're getting the library from someone else and you don't have source
you can still use MWCW to create a "Shared Library Bundle" but then replace
it's CFM library with the third-party one.
--
Enjoy,
George Warner,
Schizophrenic Optimization Scientist
Apple Developer Technical Support (DTS)
_______________________________________________
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