Carbon Events in a Cocoa App
Carbon Events in a Cocoa App
- Subject: Carbon Events in a Cocoa App
- From: Benoit Widemann <email@hidden>
- Date: Sat, 22 Jun 2002 11:44:54 +0200
Hello,
I need to receive a custom event that is not available in Cocoa. I
have written a test app in Carbon to try, and I get the event using a
custom Carbon event targeting the application. Fine.
Back in the Cocoa app. I bring the Carbon code in, no build problem,
no error while installing the event. Only, the Carbon handler is
never called.
I guess I need to link the "application target" in Carbon with
Cocoa's main run loop in some way.
I have searched the CFRunLoop header and found some clues pointing to
NSPort and CFRunLoopSource, but I've been stopped by structures
CFRunLoopSourceContext and CFRunLoopSourceContext1, which have very
little documentation.
Any suggestion welcome. Is there a documented way to make Carbon
events work in the context of a Cocoa application?
Benoit Widemann
---------------------------------------------
Home page <
http://www.widemann.net>
---------------------------------------------
#
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.