Note that there are some explanatory texts on larger screens.

plurals
  1. POFire up Cocoa GUI from C++ loop and also passing references
    primarykey
    data
    text
    <p>I have a problem... maybe a couple :) <br></p> <p>My team has written a client in C++ using Boost and CMake to take care of the platform dependent stuff. Works like a charm! ...sometimes :) Anyway the graphical interface for Windows is done but for Mac OS X it isn't. Which is also my assignment. Naturally I'm using Cocoa but the problem is that the main loop is in the C++ code and also the GUI should update a few animations depending on the client.</p> <p>How is this done? I'm very confused about how to nail the threading and how to pass references from the C++ code to the GUI code. Right now the GUI code has its own little MVC totally separated form the rest of the project. I have looked around a lot, maybe I'm too much of a noob :), but I don't fine anything I can really use... I don't really understand it all. </p> <p>I have tired to recreate the NSApplication. I found this helpful tutorial: <a href="http://cocoawithlove.com/2009/01/demystifying-nsapplication-by.html" rel="nofollow noreferrer">http://cocoawithlove.com/2009/01/demystifying-nsapplication-by.html</a></p> <p>I have looked a little at Delegates: <br> <a href="https://stackoverflow.com/questions/1045803/how-does-a-delegate-work-in-objective-c">How does a delegate work in objective-C?</a></p> <p>I have looked a little at NSNotificationCenter: <br> <a href="https://stackoverflow.com/questions/2286347/how-to-create-a-class-to-send-and-receive-events-through-nsnotificationcenter-in">How to create a class to send and receive events through NSNotificationCenter in Objective-C?</a></p> <p><br> Maybe someone here knows how to make me understand? What to look into? Where I should look?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload