Macintosh Advice Sought: Squeak VM as NS Plugin

John.Maloney at disney.com John.Maloney at disney.com
Sat Feb 5 16:34:21 UTC 2000


Lawson,

Thanks for the quick reply. Unfortunately, this doesn't help, since
it assumes that you've already got a connectionID for the code fragement
of interest. But the connectionID is precisely what I do NOT have,
but need.

What I want is a way to map the other way, from the address of a
function known to be in a given fragment back to the fragement's
connectionID. Perhaps this is totally trivial and I'm missing it.
For example, is a connectionID part of a universal procedure
descriptor? And what's the relationship between a connectionID
and a handle? Is a connectionID really just a specially typed
handle? If not, how do I map from the connectID to the handle
that contains it so I can lock the handle?

Alternatively, a way to enumerate all loaded code fragements,
in combination with the FindSymbol() call you pointed me to,
would do the trick.

[Apologies to the rest of the Squeak list for keeping this
thread public for a few more iterations; if I get this working,
it will benefit all the Mac Squeakers...]

Thanks...

	-- John


>John, take a look at this URL.
>
><http://developer.apple.com/techpubs/mac/PPCSoftware/PPCSoftware-42.html#HEADING42-28>
>
>My recollection is that you must lock and unlock the handle to the fragment
>yourself if you bypass the normal API. If the plug-in isn't referenced via
>a handle, this might be the problem right there.






More information about the Squeak-dev mailing list