[Openmcl-devel] Running code in a hemlock-view

Ron Garret ron at flownet.com
Sun Feb 16 22:12:10 UTC 2014

Not sure what you mean by running code “in a hemlock view”.  Hemlock views don’t have associated threads, so running code “in a Hemlock view” doesn’t really make sense.

Calling hi::handle-hemlock-event outside the context of an event handler fails because somewhere along the line it calls some cocoa function that can only be called from the main thread.  (What ever gave you the idea that calling hi::handle-hemlock-event might be fruitful?)

I would recommend reading chapter 6 of the CCL docs, particularly section 6.12.


On Feb 16, 2014, at 1:54 PM, Byron Davies <davies at pobox.com> wrote:

> From the listener, how do I run code in a hemlock-view?
> For example, to beep and display “Foo” in the mini buffer of an open hemlock-view v, I tried:
> (hi::handle-hemlock-event
>     v
>     (lambda () (hi::loud-message "Foo")))
> This responded with:
>> Error: Failed assertion: (EQ *CURRENT-PROCESS* CCL::*INITIAL-PROCESS*)
>> While executing: CCL::%ASSERTION-FAILURE, in process Listener(6).
> _______________________________________________
> Openmcl-devel mailing list
> Openmcl-devel at clozure.com
> http://clozure.com/mailman/listinfo/openmcl-devel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.clozure.com/pipermail/openmcl-devel/attachments/20140216/a55eed61/attachment.pgp>

More information about the Openmcl-devel mailing list