Re: Calling CFM Code
Re: Calling CFM Code
- Subject: Re: Calling CFM Code
- From: Neil Williams <email@hidden>
- Date: Fri, 24 Jun 2005 16:10:01 +0100
Nick D'Amato wrote:
How would I go about calling a CFM function *from* a Cocoa (mach-o)
application?
I was faced with the problem of writing a Cocoa app (for Panther) that
uses a CFM shared library. The library is supplied by a third party so I
only have the binary and API docs.
What I do (although this may bve considered an almighty hack) is to
access the library via a CFM project I developed in CodeWarrior. I
package this CFM shim code with my app and use:
CFBundleGetFunctionPointerForName() to get pointers to functions inside
the shim that wrap the CFM shared library.
What annoys me the most with this approach is that I need CodeWarrior to
build the CFM shim. If it was possible to write the shim in XCode I'd be
delighted.
Any words of wisdom from the list regarding the above would be much
appreciated.
Best regards
Neil Williams
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden