Re: Running Cocoa from a dynamic library
Re: Running Cocoa from a dynamic library
- Subject: Re: Running Cocoa from a dynamic library
- From: Bill Appleton <email@hidden>
- Date: Thu, 28 Jul 2011 11:51:30 -0700
You might try NPAPI, it is designed to let you draw on a surface and get
events
Your plugin runs in a separate process, and is scriptable by javascript
best
bill
On Wed, Jul 27, 2011 at 8:02 AM, Guido Sales Calvano <email@hidden
> wrote:
> 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
>
_______________________________________________
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