Skip navigation.
 
mlRe: Returning values from objc_msgSend etc
FROM : Bill Bumgarner
DATE : Sat Mar 01 18:30:44 2008

On Mar 1, 2008, at 5:00 AM, Greg Parker wrote:
> The right way to fix this is to add new API in libobjc: given an 
> ffi_type, return the correct objc_msgSend function pointer for that 
> return type. I filed the feature request for that today. Until then 
> you'll still need to handle that choice yourself. All of the 
> required code is in libffi somewhere, but there's no way for you to 
> call it directly. libffi is open source, so you could try digging 
> through the implementation and copying the code you want into your 
> program.


Both PyObjC and RubyCocoa (and F-Script Anywhere, for that matter), 
use FFI to call objc_msgSend().  Both have extensive unit tests and, 
thus, the logic seems to be correct.

Their licenses are liberal enough that you can lift the logic pretty 
much directly and munge for your purposes.

b.bum

Related mailsAuthorDate
mlReturning values from objc_msgSend etc Duncan McGregor Feb 29, 20:05
mlRe: Returning values from objc_msgSend etc Greg Parker Feb 29, 20:46
mlRe: Returning values from objc_msgSend etc Sherm Pendley Mar 1, 10:22
mlRe: Returning values from objc_msgSend etc Greg Parker Mar 1, 14:00
mlRe: Returning values from objc_msgSend etc Bill Bumgarner Mar 1, 18:30
mlRe: Returning values from objc_msgSend etc Sherm Pendley Mar 2, 00:22
mlRe: Returning values from objc_msgSend etc Duncan McGregor Mar 3, 11:52
mlRe: Returning values from objc_msgSend etc Ronald Oussoren Mar 3, 12:10
mlRe: Returning values from objc_msgSend etc Sherm Pendley Mar 3, 12:54
mlRe: Returning values from objc_msgSend etc Sherm Pendley Mar 31, 17:19
mlRe: Returning values from objc_msgSend etc Sherm Pendley Mar 31, 17:34
mlRe: Returning values from objc_msgSend etc Jean-Daniel Dupas Mar 31, 17:54
mlRe: Returning values from objc_msgSend etc Greg Parker Mar 31, 19:03
mlRe: Returning values from objc_msgSend etc Sherm Pendley Mar 31, 23:19