Access to ExternalObjectsArray from plugin

1 message Options
Embed this post
Permalink
Joshua Gargus-2

Access to ExternalObjectsArray from plugin

Reply Threaded More More options
Print post
Permalink
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