[Vm-dev] How to Send a Message to the Squeak Image

John M McIntosh johnmci at smalltalkconsulting.com
Sun Mar 2 02:31:09 UTC 2008

I'll note this way is the approved method of doing it since it doesn't  
require changing EventSensor.
Requires a bit more code and complexity

On Mar 1, 2008, at 6:25 PM, Igor Stasenko wrote:

> Well, you can do in similar way how VM does for transferring user
> input to Smalltalk side.
> In VM:
> - add some variable(s) to hold your event parameters
> - on some event, handled by windowProc(), set these parameters, and
> signal semaphore.
> - add primitive which when called, transforms event parameters to  
> objects.
> - add primitive to register given semaphore , which will be signaled
> when event occurs
> In smalltalk:
> - call primitive to register semaphore
> - create process, waiting on given semapore, once it signaled, call
> primitive to read event details.

John M. McIntosh <johnmci at smalltalkconsulting.com>
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com

More information about the Vm-dev mailing list