[erlang-questions] cocoa bridge

David Goehrig dave@REDACTED
Mon Oct 17 15:18:12 CEST 2011


Is there any reason you can't swap order, have the Cocoa app spawn erlang in a new thread and treat the original process as a port?

I ask because this is what I ended up doing for SDLPerl, where both Cocoa and Perl were fighting over the mainthread. 

-=-=- dave@REDACTED -=-=-

On Oct 17, 2011, at 4:22 AM, Joel Reymont <joelr1@REDACTED> wrote:

> Cocoa requires the event loop to run in the firs app thread (thread #0).
> 
> Is there a way to force the Erlang VM to start a new thread for itself to free thread #0 for Cocoa?
> 
> Am I stuck with hacking the VM to do so?
> 
>    Thanks, Joel
> 
> --------------------------------------------------------------------------
> - for hire: mac osx device driver ninja, kernel extensions and usb drivers
> ---------------------+------------+---------------------------------------
> http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
> ---------------------+------------+---------------------------------------
> 
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions



More information about the erlang-questions mailing list