Contribute  :  Calendar  :  Advanced Search  :  Site Statistics  :  Directory  :  Files to download  :  Links for developers  :  Privacy policy  :  Web Resources  :  Polls  
    MacOSX Guru Site Information, tips and tricks, FAQ for Mac OS X developers    
 Welcome to MacOSX Guru Site
 Monday, December 17 2018 @ 08:33 AM UTC

Can I use a Mach-O plugin with a CFM app?

   
ProjectBuilder-XCodeI have been trying to build some CFM plugins for Maya, but before the latest version (v6), it was a CFM app. This means that the plugins it supports are CFM and the only way to make those is with Codewarrior as Xcode doesn't support CFM plugins.

Is there a way to perhaps make a bridge/interpreter between the CFM application and a Mach-O plugin? I know it's possible to get a CFM app to work with a Mach-O plugin but the CFM app has to be built to work that way. I was wondering if it could work by just modifying the Mach-O plugins somehow.
 

What's Related

Story Options

Can I use a Mach-O plugin with a CFM app? | 1 comments | Create New Account
The following comments are owned by whomever posted them. This site is not responsible for what they say.
Can I use a Mach-O plugin with a CFM app?
Authored by: Anonymous on Friday, June 04 2004 @ 04:09 PM UTC
You can create a bridge layer between CFM and Mach-O. It's not really as
straightforward as one might like, but it is possible.

Essentially what you want to do is create a Mach-O bundle that contains
the code you want to call. Then you create your CFM plugin so that it
loads that bundle using the routines in CFBundle. Once you have loaded
the Mach-O Bundle you can use CFBundleGetFunctionPointerForName to
extract routine pointers from the bundle one at a time. When the system
loads the routine pointers, It will return to you a pointer that can
successfully bridge the gap between CFM and Mach-O.

You would use the same technique if you wanted to call, for example,
routines in the System.framework (i.e. BSD function calls) from a Carbon
application.

Correspondingly, there are examples of how to do this kind of thing in the
CarbonLib 1.6 SDK in the Sample Code folder in a folder called
CFM_MachO_CFM

If you are really, really clever, and if the Maya development environment
will allow one set of CFM code to register many plug-ins, you might be
able to create a generic CFM-Mach-O bridge that will allow you to develop
a host of Mach-O based plugins that all go through a single CFM front-end.
A simliar sort of thing has been used in applications like Macromedia
FreeHand to allow them to continue to support old plugin architectures.
 Copyright © 2018 MacOSX Guru Site
 All trademarks and copyrights on this page are owned by their respective owners.
Powered By Geeklog 
Created this page in 0.05 seconds