[Openmcl-devel] Problems displaying a window
R. Matthew Emerson
rme at acm.org
Mon Jan 22 12:09:29 PST 2018
> On Jan 20, 2018, at 3:25 PM, Richard Sutton <rsutton at ualberta.ca> wrote:
> Hello All,
> I am following the instructions in /ccl/examples/cocoa/ui-elements/HOWTO.html, which purports to give a simple example of creating and displaying an ns-window. It is a lovely explanation, just the sort of thing I was looking for. After just a few steps it ends with the promising claim that "The window, empty, but with the shape and features we specified, appears on the left lower corner of the screen”. Unfortunately, for me, with a freshly downloaded CCL and the Hemlock IDE, the window does not appear. The screenshot below shows me going through exactly the steps in the HowTo, with no window appearing. Any ideas about what has changed or how the HowTo should be amended?
You have to do pretty much all UI operations on the "main thread".
You can wrap code in (gui:execute-in-gui #'(lambda () (do-ui-stuff))) to make that happen.
More information about the Openmcl-devel