<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">thank you for your thoughts!! <div>it's exactly that. </div><div>I am hesitating starting with the cocoa bridge and my own bad hacking functions to give me the visualizing windows I need in my composition environment... </div><div>but if there will be a "better" or more lisp-y set of functions for cocoa windows in ccl this will be much better and probably worth waiting for. </div><div><br></div><div>I do know a little of cocoa, I wrote 1 or 2 years ago a small visualizer app that showed spectrums read from a text file with a certain format from a Ircam app called audiosculpt. but thats all. and it was before obj-c 2.0 with garbage so I had to figure out the object counting as well. not fun. But after all I "love" cocoa but I need more time with it. (much more time).</div><div><br></div><div>So, for the ccl development then, I wait a little more? for the window functions? I mean, I am still composing on my old power book G4 PPC in MCL 5.2 final 3 (from clozure) and all of my questions here is about porting my environement as soon as possible to the intel macbook pro...</div><div>I found a midi package that works. Now the dialogs and directory stuff seemes to arrive. And finally the visualizers (I never did edit-able windows). In MCL I use find-click-view (or something like that) to inspect the object, bound to the view, in the inspector window. it would be good to be able to have the same functionality in my future clozure ccl windows...</div><div><br></div><div>I can click in these fields with cmd, alt, ctrl shift key to have different content (like: go to pitch object, go to dynamics object, go to top level etc etc)</div><div><br></div><div>Sincerely</div><div>Joakim</div><div><br></div><div><img height="492" width="983" apple-width="yes" apple-height="yes" src="cid:0196844C-FC89-41EC-86A0-4421787DF891"></div><div><br></div><div><br></div><div><div><div>Le 4 mai 09 à 10:19, R. Matthew Emerson a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><br>On May 3, 2009, at 4:39 PM, Joakim Sandgren wrote:<br><br><blockquote type="cite">it seems to me that easygui is a package that is made a little ad hoc, "for now", to resolve urgent needs now. and the gui package is part of the "real" cocoa communication in clozure ccl...<br></blockquote><blockquote type="cite">and perhaps in a future better version the easygui will be obsolete but the gui package not...<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I am of course still waiting for some window functions in ccl, and for the moment being I dont know on wich horse I should bet...<br></blockquote><br>At the moment, I find that I am more-or-less writing Objective-C code in Lisp.  That is to say, I'm just using the Objective-C bridge directly.  On the one hand, this is not so bad:  it's certainly handy to be able to add and redefine Objective-C methods on-the-fly, and so forth.  In some ways, it even feels pretty high-level.  After a while you become desensitized to the  #/callSomeMethod syntax and forget that you're calling foreign code (at least until you screw up and crash the lisp).<br><br>On the other hand, you really need to know Cocoa pretty well in order to work like this.  You have to understand various Cocoa conventions like naming, memory management, the model-view-controller pattern (ugh, I said "pattern"), threading issues, etc.<br><br>I think we do need some sort of CLOS-y interface to Cocoa that abstracts out the need to worry about running stuff on the proper thread, takes care of appropriately retaining and releasing Objective-C objects, does something about the lisp string to NSString hassle, and so on.<br><br>Easy GUI is an experiment in that direction.  I am not using Easy GUI when developing code for the IDE, but I do hope that as we all get more experience programming Cocoa in CCL, we'll be able to identify and implement good abstractions for various aspects of Cocoa and put that code somewhere, whether that be Easy GUI or somewhere else.<br><br></div></blockquote></div><br><div apple-content-edited="true"> <div><font class="Apple-style-span" color="#595959" face="'Trebuchet MS'"><br class="Apple-interchange-newline"><br></font></div><div><font class="Apple-style-span" color="#595959" face="'Trebuchet MS'"><br></font></div><div><font class="Apple-style-span" face="'Trebuchet MS'" color="#595959">Joakim Sandgren</font></div><div><font class="Apple-style-span" face="'Trebuchet MS'" color="#595959">joakim sandgren musik</font></div><div><font class="Apple-style-span" face="'Trebuchet MS'" color="#595959">42, rue de Maubeuge</font></div><div><font class="Apple-style-span" face="'Trebuchet MS'" color="#595959">75009 Paris</font></div><div><font class="Apple-style-span" face="'Trebuchet MS'" color="#595959">France</font></div><div><font class="Apple-style-span" face="'Trebuchet MS'" color="#595959">+33 (0)1 45 26 43 90</font></div><div><font class="Apple-style-span" face="'Trebuchet MS'" color="#595959"><a href="mailto:info@joakimsandgren.com">info@joakimsandgren.com</a></font></div><div><font class="Apple-style-span" face="'Trebuchet MS'" color="#595959"><a href="http://www.joakimsandgren.com/">http://www.joakimsandgren.com</a></font></div> </div><br></div></body></html>