Re: Use CFMessagePort in CFM app?
Re: Use CFMessagePort in CFM app?
- Subject: Re: Use CFMessagePort in CFM app?
- From: Quinn <email@hidden>
- Date: Mon, 12 Jul 2004 17:03:57 +0100
At 5:36 -0400 8/6/04, Jan E. Schotsman wrote:
I am beginning to feel I am trying to do the impossible (using message
ports in a CFM app). I want to use the ports to communicate with a
helper tool (which basically calls
MovieExportFromDataRefToProcedures in its main thread because some
QuickTime copmonents, notably sound components, are not thread safe
yet). I can load all the function pointers from CoreFoundation
framework, no problem there. Calling CFMessagePortCreateLocal and
CFMessagePortCreateLocal in an MP thread seems to work.
I don't know what kCFRunLoopDefaultMode is, right now I m just guessing
CFSTR("").
Bad idea. You should use the global variable, not another copy of
the string. You can get the global using
CFBundleGetDataPointerForName (exactly analogous to
CFBundleGetFunctionPointerForName).
Next problem is my port callbacks are never called. Is this a UPP-like
problem?
Yes.
Can I write some glue to make it work or is this a no-no?
Check out the CFM_MachO_CFM sample.
<
http://developer.apple.com/samplecode/CFM_MachO_CFM/CFM_MachO_CFM.html>
S+E
--
Quinn "The Eskimo!" <
http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.