• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Using va_list to build a formatted string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Using va_list to build a formatted string
      • From: Graham Cox <email@hidden>
References: 
 >Using va_list to build a formatted string (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: How can I get a single threaded network call in ObjC on iOS?
  • Next by Date: Using va_list to build a formatted string
  • Previous by thread: Using va_list to build a formatted string
  • Next by thread: Re: Using va_list to build a formatted string
  • Index(es):
    • Date
    • Thread