[Vm-beginners] Objective-C
Sean P. DeNigris
sean at clipperadams.com
Sun May 1 13:53:21 UTC 2011
How do I call objective-C code from Squeak/Pharo?
The following tests were done with the Squeak 4.2.5beta1U VM...
I loaded the "Objective-C bridge 2" project from SqS, and about half the
tests passed in Pharo 1.1.1.
Evaluating:
bundle := ObjectiveCBridge classObjectForName: 'NSBundle'. "also tried
ObjectiveCObject>>findClassName:"
aBundle := bundle bundleWithPath: '/Applications/Mail.app'.
Led to a primitive failure:
primitivePerformSelector: aSelectorOop on: aClassorInstanceOop with:
argument1
<primitive: 'primitivePerformSelectorWith' module:
'ObjectiveCPlugin'>
self primitiveFailed
I tried the "ObjectiveCBridge" project in Squeak 4.2 final...
Evaluating:
bundle := NSBundle bundleWithPath: '/Applications/Mail.app'.
Led to a different primitive failure:
primitiveIdFromString: aString
<primitive: 'primitiveIdFromString' module: 'ObjectiveCPlugin'>
^self primitiveFailed
Thanks.
Sean--
View this message in context: http://forum.world.st/Objective-C-tp3487777p3487777.html
Sent from the Smalltalk VM - Beginners mailing list archive at Nabble.com.
More information about the VM-beginners
mailing list