[Vm-dev] FFI Problem with Mac 4.2.5 VM

David T. Lewis lewis at mail.msen.com
Sat May 21 22:37:15 UTC 2011


I do not know enough about OS X to offer much help, but I opened a
Mantis report <http://bugs.squeak.org/view.php?id=7636> to track the
issue.

Dave

On Sat, May 21, 2011 at 12:30:37PM -0700, Sean P. DeNigris wrote:
>  
> I'm having trouble calling a Mac Foundation function via FFI. It appears to
> be the plugin for the Mac 4.2.5 
> VM. There was a discussion at
> http://forum.world.st/FFI-to-call-Mac-Carbon-functions-td3507842.html
> 
> The meat of it is:
>         After I put a link to the Foundation lib in the VM's Resources
> folder, I compiled: 
> 
>         CarbonFunctions class>>NSMakeRectWithX: xFloat y: yFloat w:
> widthFloat h: hFloat 
>                 &lt;apicall: void* 'NSMakeRect' (float float float float)
> module: 'Foundation'&gt;
>                 ^self externalCallFailed 
> 
>         DoIt: 
>         CarbonFunctions 
>                 NSMakeRectWithX: 0.0 
>                 y: 0.0 
>                 w: 100.0 
>                 h: 100.0. 
> 
>         Error: Unable to find function address
> 
> Other relevant info:
> * I am able to call libc functions
> 
> Thanks.
> Sean
> 
> --
> View this message in context: http://forum.world.st/FFI-Problem-with-Mac-4-2-5-VM-tp3541069p3541069.html
> Sent from the Squeak VM mailing list archive at Nabble.com.


More information about the Vm-dev mailing list