Re: Mach-O app calling CFM plug-in?
Re: Mach-O app calling CFM plug-in?
- Subject: Re: Mach-O app calling CFM plug-in?
- From: George Warner <email@hidden>
- Date: Mon, 28 Aug 2006 17:24:44 -0700
- Thread-topic: Mach-O app calling CFM plug-in?
On Mon, 28 Aug 2006 16:54:50 -0400, Philippe Casgrain
<email@hidden> wrote:
> On 06-08-28, at 16:31, Rosyna wrote:
>
>> I'm not sure, but this may be relevant.
>> http://developer.apple.com/samplecode/CFM_MachO_CFM/index.html
>
> Thank you, I know (and used) this sample code. This is when you're a
> CFM application, calling into a Mach-O loadable bundle, and maybe
> calling back from the bundle into your CFM application. We use this
> for WebKit integration.
>
> We're trying to call CFM from Mach-O, not the other way around :-]. I
> guess we're looking for MachO_CFM_MachO...
Actually the CFBundle API's are architecture agnostic. They can be used to
call CFM/PEF from macho or macho from CFM/PEF. The
CFBundleGetFunctionPointerForName API generates any necessary glue for
calling cross architecture (ether way).
>> Specifically, MachOFunctionPointerForCFMFunctionPointer()
> Again, this is when you are a CFM app and calling into Mach-O. We use
> this too :-)
This is only needed when the (other architecture) routine you're calling
requires a callback routine.
--
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