« Return to Thread: How to Send a Message to the Squeak Image

Re: How to Send a Message to the Squeak Image

by John M McIntosh :: Rate this Message:

Reply to Author | View in Thread

 
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@...>
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
=
=
=
========================================================================


 « Return to Thread: How to Send a Message to the Squeak Image