Access to ExternalObjectsArray from plugin

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Access to ExternalObjectsArray from plugin

Joshua Gargus-2
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