Access to ExternalObjectsArray from plugin

Josh Gargus schwa at fastmail.us
Mon May 1 03:00:39 UTC 2006


Hi all,

Is there a mechanism for accessing objects in the  
ExternalObjectsArray from a plugin?  For some reason, I thought that  
there was, but I can't find it in the code (image or vm) or in the  
various list archives.

I was hoping to have a QuickTime callback function (i.e. a function I  
passed into QuickTime) copy data directly into a Squeak ByteArray,  
which was to have been looked up by its index in the  
ExternalObjectsArray.  Instead it looks like I'll have to copy it  
into an ExternalData, and copy it again into a Squeak ByteArray.  Is  
this right?

It seems trivial to expose access to the ExternalObjectsArray via the  
interpreterProxy, and I can't think of any good reason not to.  Can you?

Can anyone suggest a solution that doesn't involve hacking the VM  
(writing plugin code is fine)?

Thanks,
Josh



More information about the Vm-dev mailing list