Re: Programmatically constructing list of variable arguments?
Re: Programmatically constructing list of variable arguments?
- Subject: Re: Programmatically constructing list of variable arguments?
- From: Jean-Daniel Dupas <email@hidden>
- Date: Fri, 12 Dec 2008 15:40:24 +0100
Le 12 déc. 08 à 14:53, Jonathan del Strother a écrit :
I'm calling a method that takes a nil-terminated variable list of
arguments. It doesn't supply a va_arg alternative (like NSLogv,
-[NSString initWithFormat:arguments:] etc).
The number of arguments isn't known at compile-time. I'd like to be
able to take an NSArray of the arguments, and programmatically convert
that to something suitable for invoking the method.
Any suggestions?
-Jon
It's probably possible using libffi, but it should be tricky. (man ffi
for details)
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden