Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
CallMachOFramework
Last Revision: | Version 1.0, 2003-07-17 Shows two ways of calling a Mach-O framework from a CFM application on Mac OS X. |
Build Requirements: | |
Runtime Requirements: | Mac OS X Mac OS X |
This sample shows two ways of calling a Mach-O framework from a CFM application on Mac OS X. Both approaches create a CFBundle for the framework and then extract pointers to functions in the framework using CFBundleGetFunctionPointerForName. The simpler approach approach just gets a pointer to the framework function, casts it to appropriate C function pointer type, and calls it. The more complex, but more general, approach uses CFMLateImport technology to bulk import functions from a framework without any messy function pointers. Requirements: Mac OS X
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-07-17