• 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
Re: Running Cocoa from a dynamic library
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Running Cocoa from a dynamic library (From: Guido Sales Calvano <email@hidden>)

  • Prev by Date: Re: Running Cocoa from a dynamic library
  • Next by Date: Filter an array
  • Previous by thread: Re: Running Cocoa from a dynamic library
  • Next by thread: Drawing text in a ImageAndTextCell in a nsoutlineview works as desired in Leopard. Broken in Snow Leopard and Lion
  • Index(es):
    • Date
    • Thread