Runloops, Cocoa and Carbon
Runloops, Cocoa and Carbon
- Subject: Runloops, Cocoa and Carbon
- From: Reed Hedges <email@hidden>
- Date: Sat, 06 Mar 2004 10:30:54 -0500
Hello,
Is [NSApp run] the only way to run the Cocoa event loop? Is there a
way to run it "once" in my own run loop?
The reason I ask is that I am trying to integrate two large
frameworks, wxWidgets and CrystalSpace. wxWidgets uses Carbon and
provides its own black-box "Application" class to run the run loop.
CrystalSpace uses Cocoa and also provides its own run loop (Some
setup, then [NSapp run]). I have read that Carbon and Cocoa can
co-exist in the same program, but I need to find a way to get these
runloops to both run. I have a test program set up to work within
wxWidgets framework, but not call the CrystalSpace runloop. As
expected, the CrystalSpace window never recieves any events, though it
displays and updates fine.
I am investigating several approaches to this. One is to run both
frameworks in seperate threads (I have a threadsafe middleware system
that will be doing all intercommunication between them anyway).
Another is to process Carbon events periodically within the CS loop.
Another is to work within the wxWidgets runloop, and process the Cocoa
event queue in that, and how to do that is my primary question here.
However, if anyone has any more ideas, I'd love to hear them.
TIA for any help, info or pointers!
reed
--
Reed Hedges
email@hidden
http://zerohour.net/~reed
AIM: ReedHedges
VOS/Interreality:
http://interreality.org
_______________________________________________
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.