Hmmm, after hearing back from the Cocoa-dev mailing list that all of Cocoa&#39;s Event handling code is based on Carbon (and is 64-bit compatible, at least the Event Handling), I don&#39;t know if it is worth it to write the external in ObjC (which I will probably do poorly at that, as it is my first attempt with the language).  Anyways, Carbon is written in C, the WinTab API is written in C, so introducing ObjC may turn out to be a hassle later on instead of allowing future compatibility? <br>
<br>Well, thanks for the advice anyways.  <br><br><div class="gmail_quote">On Mon, Dec 21, 2009 at 6:59 PM, Rich E <span dir="ltr">&lt;<a href="mailto:rich.eakin@gmail.com">rich.eakin@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks for the advice.  I am not sure I understand how to get the callback functions for pd to interface with the cocoa API, but I&#39;ll give a crack at it later tonight and see how far I get (first time doing anything in obj-c).  For me, I don&#39;t really care about elegance as much as that it will do everything that I want it to do (and fast).<br>
<font color="#888888">
<br>Rich</font><div><div></div><div class="h5"><br><br><div class="gmail_quote">On Mon, Dec 21, 2009 at 9:54 AM, IOhannes m zmoelnig <span dir="ltr">&lt;<a href="mailto:zmoelnig@iem.at" target="_blank">zmoelnig@iem.at</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div>Rich E wrote:<br>
&gt; Hi all,<br>
&gt;<br>
&gt; I have been thinking of how to use cocoa in a pd external and I could use<br>
&gt; some advice.  It has to be in Objective-C of course, and I see that gridflow<br>
&gt; uses cocoa a little (format/quartz.m). Still, I am not understanding how to<br>
&gt; combine the elements of a pd external (in C) with that of what I am finding<br>
&gt; in cocoa example applications (in objective-c).  Will I just write the<br>
&gt; entire external in objective-c, or is there some specific way to use obj-c<br>
&gt; syntax within a C source file?  Any tips or directs are thankfully welcomed.<br>
<br>
</div></div>you can mix C-code and ObjC-code just fine in your .m file (that is: you<br>
can use C in ObjC; you cannot use ObjC in your C)<br>
<br>
so basically you write everything in ObjC, but the callback-functions<br>
for Pd (which are written in C)<br>
i guess there are more elegant ways to do it, but this is how i would do it.<br>
<br>
fgmasdr<br>
<font color="#888888">IOhannes<br>
</font></blockquote></div><br>
</div></div></blockquote></div><br>