Running Cocoa from a dynamic library
Running Cocoa from a dynamic library
- Subject: Running Cocoa from a dynamic library
- From: Guido Sales Calvano <email@hidden>
- Date: Wed, 27 Jul 2011 08:02:13 -0700 (PDT)
Dear community,
I'm building a project I've been thinking about for 14 years now. Finally doing
it. But I've hit a stumbling block... So I need help...
I'm trying to wrap Ogre3D a graphics engine in a javascript api using v8, and
then load that as a module in node js, a javascript framework focussed on web
communication tasks such as running a server. Node js can load other javascript
modules that are bound to C++ code as dynamic libraries.
Ogre3D however, uses a cocoa window to render on, and obviously I want user
input. But if I start ogre in a dynamic library ui events register incorrectly.
Only clicks and drag operations are detected, but no key input or mouse move
events. This only happens when I load the library dynamically. I know this
because I created a simple program that just loaded my dynamic lib to test the
assumption. If I don't load the lib dynamically, but link directly everything
works fine.
The answer is probably quite simple, once you know where to look, but I don't
know where to look. So please help.
Kind regards (:
Guido
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden