Plugins sending messages to objects?
Ned Konz
ned at bike-nomad.com
Tue Apr 9 16:49:01 UTC 2002
On Tuesday 09 April 2002 05:32 am, Kris Gybels wrote:
> Hi all,
>
> I was looking into Squeak Plugin creation and am wondering: can
> plugins send messages to Smalltalk objects? I only took a quick
> peek at the VM API but it seemed that plugins are limited to
> getting and setting instance variables of objects, not send
> messages to them. Or did I just miss something?
From "Extending the Squeak Virtual Machine", which is a chapter by
Andrew C. Greenberg in the book "Squeak: Open Personal Computing and
Multimedia" by Mark J. Guzdial and Kimberly M. Rose ISBN:
0-13-028091-7,
http://www.pearsonptg.com/book_detail/0,3771,0130280917,00.html
or on page 23 of the PDF available at
http://coweb.cc.gatech.edu:8888/squeakbook/uploads/greenberg.pdf
http://penguin.cc.gt.atl.ga.us:8080/schwa/uploads/63/greenberg.pdf
"
One of the great weaknesses in the Squeak VM memory model is that the
interpreter cannot readily be called from a C-language function.
Accordingly, applications requiring callbacks are somewhat difficult
to implement. A limited callback capacity can be approximated using
the interpreterProxy method:
interpreterProxy signalSemaphoreWithIndex: semaIndex.
interpreterProxy->signalSemaphoreWithIndex(semaIndex);
"
--
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE
More information about the Squeak-dev
mailing list
|