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

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

  • Follow-Ups:
    • Re: Running Cocoa from a dynamic library
      • From: Bill Appleton <email@hidden>
    • Re: Running Cocoa from a dynamic library
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: 1. Creating a TCP server? (Rick Mann)
  • Next by Date: Drawing text in a ImageAndTextCell in a nsoutlineview works as desired in Leopard. Broken in Snow Leopard and Lion
  • Previous by thread: Tracking down CALayer problem in iTunes plug-in
  • Next by thread: Re: Running Cocoa from a dynamic library
  • Index(es):
    • Date
    • Thread