[Openmcl-devel] #/addSubviews: under MS-Windows

Greg Bennett gwbennet at likelihood.math.uwaterloo.ca
Mon Jul 11 14:38:32 UTC 2011


Good morning from Greg Bennett,

I am trying to find my way around the cocoa material in the MS-Windows
files included in the trunk. I'm running revision 14863 of version 1.7 under
Windows 7 Pro; using the 32-bit environment with its listener.

Specifically I tried to work my way down the code in
ccl/examples/cocoa/ui-elements/HOWTO.html
but I could persuade subviews to show themselves.

In the notation of that page, I can create and display my-window,

I can create my-button ..  but

(#/addSubview: (#/contentView my-window) my-button)

returns NIL and leaves the my-window's appearance unchanged.

However
(#/subviews (#/contentView my-window))
does return my-button thusly:
#<NS-MUTABLE-ARRAY (
  "<NSButton[0x33dc010] frame: {{10, 10}, {72, 32}}>"
  ) (#x342F458)>

It looks as if I need some sort of re-display method for the
contentView, so on the basis of P238 in Aaron Hillegass' 3rd Edition, I 
tried
(#/setNeedsDisplay: (#/contentView my-window) #$YES)
which returns NIL and no change to my-window

Perhaps there is a spot on Clozure's website in which the oddities of 
MS-Windows and
drawing and CCL are noted. A pointer to such a spot or to a place where 
such items
are discussed would help me along; perhaps any such discussion is in the 
pipermail archives

Thanks for all the effort which has obviously gone into making it even 
possible for
cocoa to run in this environment.

Cheers /Greg Bennett
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clozure.com/pipermail/openmcl-devel/attachments/20110711/9d621dfb/attachment.html>


More information about the Openmcl-devel mailing list