• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Runloops, Cocoa and Carbon
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Runloops, Cocoa and Carbon
      • From: email@hidden (Simon Fraser)
    • Re: Runloops, Cocoa and Carbon
      • From: Alastair Houghton <email@hidden>
  • Prev by Date: Re: What if one can not redo and undo?
  • Next by Date: Re: Addressbook style textfield
  • Previous by thread: RE:ANN: BiggerSQL v1.1 A Postgresql Browser
  • Next by thread: Re: Runloops, Cocoa and Carbon
  • Index(es):
    • Date
    • Thread