[Vm-beginners] Objective-C

John McIntosh johnmci at smalltalkconsulting.com
Sun May 1 18:59:35 UTC 2011


I'd say you are missing the ObjectiveCPlugin.bundle, all the tests
should pass as it's a sanity check.

On Sun, May 1, 2011 at 9:53 AM, Sean P. DeNigris <sean at clipperadams.com> wrote:
> 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.
> _______________________________________________
> VM-beginners mailing list
> VM-beginners at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/vm-beginners
>



-- 
===========================================================================
John M. McIntosh <johnmci at smalltalkconsulting.com>
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===========================================================================


More information about the VM-beginners mailing list