[Openmcl-devel] More questions on Cocoa bridge & Bosco

Thom Goodsell tgg at mac.com
Sat Apr 24 01:36:12 UTC 2004


Thanks to the three of you who responded to my last question. 
CocoaBridgeDoc.txt was exactly what I was looking for; I'm not sure how 
I missed it. The other comments were equally useful, and gave me some 
additional insight into things I hadn't quite figured out previously 
(like rlet).

I've made some progress, and now I have a couple more questions:

Working with attributed strings, I figured out that I can't use 
#$NSForegroundColorAttributeName as a dictionary key (or as anything, 
for that matter), but that using #@"NSColor" does what I want. Is there 
any way to divine the mapping from NS...AttributeName to the NSString?

My second question is about using Bosco, though I thought I'd include 
it here in case someone besides Mikal had some insight. If I run my 
very simple application and connect to the debug port, running any 
Cocoa code results in complaints that 
"ccl:darwin-headers;cocoa;constants.cdb" doesn't exist. If I run Alpaca 
and start a listener, however, I can evaluate cocoa stuff without any 
trouble. Anyone have an idea how to get my image to find the 
interfaces?

Thanks Again,
Thom Goodsell


On Apr 23, 2004, at 12:16 PM, Raffael Cavallaro wrote:

>
> On Apr 23, 2004, at 11:39 AM, Randall Beer wrote:
>
> [much informative stuff about using the Cocoa bridge]
>
> >From the perspective of one who is himself new to the Cocoa bridge, I 
> strongly recommend reading two things:
>
> 1. ccl/examples/CocoaBridgeDoc.txt and,
> 2. the very short, but very instructive code in Randall Beer's 
> tiny.lisp at ccl/examples/tiny.lisp. It is even more instructive if 
> read alongside the code from which it was adapted in Simson 
> Garfinkel's  _Building Cocoa Applications_. I don't think I would ever 
> have thought to use slet unless I had seen Randall's example usage in 
> tiny.lisp and his explanation of its use in CocoaBridgeDoc.txt.
>
> raf
>
>
> Raffael Cavallaro, Ph.D.
> raffaelcavallaro at mac.com
> _______________________________________________
> Openmcl-devel mailing list
> Openmcl-devel at clozure.com
> http://clozure.com/mailman/listinfo/openmcl-devel




More information about the Openmcl-devel mailing list