• 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: Jens Alfke <email@hidden>
  • Date: Thu, 28 Jul 2011 11:14:10 -0700

On Jul 27, 2011, at 8:02 AM, Guido Sales Calvano wrote:

> 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.

It’s not the fact that it’s in a dynamic library that causes trouble (for example, all system frameworks are in dynamic libraries!) It’s the fact that you’re starting a generic Unix process (node.js server) and then trying to turn it into a GUI app by calling AppKit in it, without going through the usual AppKit initialization (NSApplicationMain). However, I don’t think calling NSApplicationMain is the right thing for you to do, because (a) it expects to be the first thing called when the process starts, and (b) it will take over the main thread.

I know that this can be done, though I don’t know the details of how. But hopefully this will get you looking closer to the right place, or nudge people who do know more to provide some answers.

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: Ken Thomases <email@hidden>
    • Re: Running Cocoa from a dynamic library
      • From: "Stephen J. Butler" <email@hidden>
References: 
 >Running Cocoa from a dynamic library (From: Guido Sales Calvano <email@hidden>)

  • Prev by Date: Re: Space-efficient saving for Versions?
  • Next by Date: Re: Running Cocoa from a dynamic library
  • Previous by thread: Running Cocoa from a dynamic library
  • Next by thread: Re: Running Cocoa from a dynamic library
  • Index(es):
    • Date
    • Thread