<div>How about this? I've used this for other systems I've needed to wrap in some GUI:</div><div><br></div>1) Create cocoa application with a proper "main" that runs in a main thread.<div>2) create new thread</div>
<div>3) open erl as a dynamic library</div><div>4) call the entry point of that dynamic library from the new thread</div><div><br></div><div>Sincerely,<br></div><div><br></div><div>jw</div><div><br clear="all"><br>--<br>Americans might object: there is no way we would sacrifice our living standards for the benefit of people in the rest of the world. Nevertheless, whether we get there willingly or not, we shall soon have lower consumption rates, because our present rates are unsustainable. <br>
<br>
<br><br><div class="gmail_quote">On Mon, Oct 17, 2011 at 6:57 AM, Joel Reymont <span dir="ltr"><<a href="mailto:joelr1@gmail.com">joelr1@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
On Oct 17, 2011, at 2:18 PM, David Goehrig wrote:<br>
<br>
> 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?<br>
<br>
<br>
</div>I was hoping to avoid marshaling function calls over TCP.<br>
<div><div></div><div class="h5"><br>
--------------------------------------------------------------------------<br>
- for hire: mac osx device driver ninja, kernel extensions and usb drivers<br>
---------------------+------------+---------------------------------------<br>
<a href="http://wagerlabs.com" target="_blank">http://wagerlabs.com</a> | @wagerlabs | <a href="http://www.linkedin.com/in/joelreymont" target="_blank">http://www.linkedin.com/in/joelreymont</a><br>
---------------------+------------+---------------------------------------<br>
<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</div></div></blockquote></div><br></div>