Re: Where to look for dynamic code loading
Re: Where to look for dynamic code loading
- Subject: Re: Where to look for dynamic code loading
- From: "Peter O'Gorman" <email@hidden>
- Date: Thu, 02 Mar 2006 12:25:00 +0900
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jeff DuMonthier wrote:
| I'm building audio unit plugins, but have a non-audio question. My DSP
| code is in C++ classes separate from the core audio classes and I have
| Altivec and non-Altivec versions. It would be nice to just ship one
| version and have it load the right code at run time, but I've never gone
| through the trouble to figure out how. If I have a C++ bundle, what is
| the preferred way build the plugin bundle and have it load either the
| Altivec or non-Altivec version at run time? The audio units include
| code to determine whether or not Altivec is there, so I just need to
| figure out how to organize the project and sub projects/libraries as
| well as load them. Since this is not objective-C, NSBundle with a
| principle class isn't going to work. I'm running under 10.3, so I'm not
| doing universal binaries yet. One thing at a time.
Look at the docs for CFBundle, dlopen, or NSModule - take your pick. I think
for applications which already use CoreFoundation CFBundle is your best bet.
If you don't already use CoreFoundation look at the man pages for dlopen
and/or NSModule.
Peter
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Darwin)
iQCVAwUBRAZljLiDAg3OZTLPAQKFRAQApvRDje/kD45U915Siev87JsQuN/9C2nP
y8EPFTAYTw3d+wgcfUzN9phqpSUtufWFXhvtV8BVt67VHQVqyuLslXMjg10yjD6b
QyV1miPCWZLFuKfFT4fLuzxitf1TZd2wvzIJ4YtG24nncxlth35GfqiqdhJ5Q7Pk
AnOxM2etQ6Q=
=NG+m
-----END PGP SIGNATURE-----
_______________________________________________
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