Re: Using va_list to build a formatted string
Re: Using va_list to build a formatted string
- Subject: Re: Using va_list to build a formatted string
- From: Wim Lewis <email@hidden>
- Date: Wed, 29 Jun 2016 19:45:19 -0700
On Jun 29, 2016, at 7:38 PM, Graham Cox <email@hidden> wrote:
> va_list argsP;
> va_start( argsP, format );
>
> logString = [NSString stringWithFormat:format, argsP];
You need to use -stringWithFormat:arguments: here, since you're passing in a va_list of arguments.
_______________________________________________
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