On Aug 10, 2005, at 6:02 PM, Nathaniel Gray wrote:
Is there any way to send float or double arguments to a method
designated at runtime? I've tried using objc_msgSendv, casting it
in various ways, and using -performv::, but nothing works.
Using objc_msgSendv() properly requires knowledge of your platform's
ABI. In particular, floating-point values must be stored in a special
place in the marg_list on PowerPC. objc-msg-ppc.s notes some of the
details.
Better options may be:
* using NSInvocation. It shields you from the ABI details.
* using objc_msgSend() or objc_msgSend_stret() directly. Cast
objc_msgSend() to a function pointer type that matches your method's
signature, then make the call.
--
Greg Parker email@hidden Runtime Wrangler
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Objc-language mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/objc-language/email@hidden