[Vm-dev] FFI Problem with Mac 4.2.5 VM

Sean P. DeNigris sean at clipperadams.com
Sat May 21 19:30:37 UTC 2011


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 
                <apicall: void* 'NSMakeRect' (float float float float)
module: 'Foundation'>
                ^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