Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 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:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.