On Thu, Jul 28, 2011 at 1:14 PM, Jens Alfke <[email protected]> wrote:
> 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.


NSApplicationLoad()?  Although that's meant to be called from Carbon
applications. I don't know that command line applications will work at
all.
_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to