<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="+1"><font face="Arial">Good morning from Greg Bennett,<br>
<br>
I am trying to find my way around the cocoa material in the
MS-Windows<br>
files included in the trunk. I'm running revision 14863 of
version 1.7 under<br>
Windows 7 Pro; using the 32-bit environment with its listener.<br>
<br>
Specifically I tried to work my way down the code in<br>
ccl/examples/cocoa/ui-elements/HOWTO.html<br>
but I could persuade subviews to show themselves.<br>
<br>
In the notation of that page, I can create and display
my-window,<br>
<br>
I can create my-button .. but<br>
<br>
(#/addSubview: (#/contentView my-window) my-button)<br>
<br>
returns NIL and leaves the my-window's appearance unchanged.<br>
<br>
However<br>
(#/subviews (#/contentView my-window))<br>
does return my-button thusly:<br>
#<NS-MUTABLE-ARRAY (<br>
"<NSButton[0x33dc010] frame: {{10, 10}, {72, 32}}>"<br>
) (#x342F458)><br>
<br>
It looks as if I need some sort of re-display method for the<br>
contentView, so on the basis of P238 in Aaron Hillegass' 3rd
Edition, I tried<br>
(#/setNeedsDisplay: (#/contentView my-window) #$YES)<br>
which returns NIL and no change to my-window<br>
<br>
Perhaps there is a spot on Clozure's website in which the
oddities of MS-Windows and<br>
drawing and CCL are noted. A pointer to such a spot or to a
place where such items<br>
are discussed would help me along</font></font><font size="+1"><font face="Arial">; perhaps any such discussion is in the pipermail
archives</font></font><br>
<font size="+1"><font face="Arial"> <br>
Thanks for all the effort which has obviously gone into making
it even possible for<br>
cocoa to run in this environment.<br>
<br>
Cheers /Greg Bennett</font></font>
</body>
</html>