Version: 1.0

Posted: 2003-07-17

Build Requirements: N/A

Runtime Requirements: Mac OS X Mac OS X 10.1

View Source Code:

Download Sample (“CFM_MachO_CFM.zip”, 43.4K)
Download Sample (“CFM_MachO_CFM.dmg”, 100.4K)



Description

This sample demonstrates how to call a Mach-O function which takes a callback function pointer as a parameter. The main CFM application readies the callback function by calling a routine MachOFunctionPointerForCFMFunctionPointer() which generates power pc assembly glue to call the passed in function pointer. This generated glue is then passed to the Mach-O routine as the callback parameter. Requirements: Mac OS X 10.1 Keywords: Carbon CFM Mach-O Macho Bundle

Document Revision History

Date Notes
2003-07-17CFM application calls Mach-O routine, passing in a fixed up CFM function pointer as a callback parameter.

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.