Legacy Mac OS X Reference Library Apple Developer Connection

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 Code (“CFM_MachO_CFM.zip”, 39.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 It's good, but... Not helpful...