Checking whether a VM plugin has been loaded
Alain Fischer
mailinglist.fischer at bluewin.ch
Wed Apr 6 19:43:36 UTC 2005
Hi Coen,
I have just do the following and the plugin worked nice:
- downloaded the UNIX VM 3.7-7 and 3.7 image
- dowloaded http://beta4.com/~avi/ObjectiveCPlugin
- copied the ObjectiveCPlugin in Squeak-3.7-7.app/Contents/MacOS/
- downloaded
http://kilana.unibe.ch:8888/ObjectiveCBridge/ObjectiveC-avi.70.mcz
- launched Squeak then installed ObjectiveC-avi.70.mcz
After that in a Workspace a made a smalltest:
"(NSString stringWithString: 'hello') uppercaseString"
the result was "@'HELLO'"
You ABSOLUTELY need to install the ObjectiveCPlugin.
The one in the distributed VM is a very old one and will not work.
Hope this help you to evaluate the ObjectiveC bridge.
Alain
Le 6 avr. 05, à 10:45, Coen De Roover a écrit :
> Hi,
>
> I would like to try the ObjectiveC plugin for Squeak on OS X, but when
> I follow the instructions
> of http://lists.squeakfoundation.org/pipermail/squeak-dev/2004-June/
> 078601.html, I keep getting primitive failed.
>
> I did the following to obtain the attached debug log:
> - downloaded the UNIX VM 3.7-7 and 3.7-5989 image
> - found that the ObjectiveCPlugin was already included in the VM's
> package contents (tried again later by replacing it by the one
> mentioned in your mail)
> - placed the nib file in the correct directory (the dir didn't exist
> yet)
> - installed VMMaker from SqueakMap
> - connected to the SqueakSource repository for the plugin using the
> Monticello browser
> - waited a while :)
> - got the primitive failed error
>
> I'm not sure how I can check whether an external VM plugin is loaded,
> but the printed result from Smalltalk listLoadedModules
> is #('SocketPlugin 19 March 2005 (i)' 'LargeIntegers v1.3 19 March
> 2005 (i)' 'FloatArrayPlugin 19 March 2005 (i)' 'Matrix2x3Plugin 19
> March 2005 (i)' 'BitBltPlugin 19 March 2005 (i)' 'B2DPlugin 19 March
> 2005 (i)' 'SecurityPlugin 19 March 2005 (i)' 'FilePlugin 19 March 2005
> (i)' 'MiscPrimitivePlugin 19 March 2005 (i)')
> Is there any way to check whether the plugin was loaded correctly?
>
> Thanks in advance,
> Coen De Roover
>
>
>
>
More information about the Squeak-dev
mailing list
|