[Openmcl-devel] Running code in a hemlock-view
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:
> (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
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 455 bytes
Desc: Message signed with OpenPGP using GPGMail
More information about the Openmcl-devel