• 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
What to do with initWithFormat + an array
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

What to do with initWithFormat + an array


  • Subject: What to do with initWithFormat + an array
  • From: Thomas Lachand-Robert <email@hidden>
  • Date: Sun, 17 Oct 2004 15:49:23 +0200

Hi list,

I need to build a string using something similar to initWithFormat, except that the parameters for the format list are given in an array (and I don't known how many of them there is). Is there a simple way to do that, besides interating myself the string format looking for %@?

Transforming the array to a va_args would be enough, since there is a method
initWithFormat:(NSString *)format arguments:(va_list)argList
but I don't known how to do that, too.

Thanks,

Thomas Lachand-Robert
********************** email@hidden
<< Et le chemin est long du projet à la chose. >> Molière, Tartuffe.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Prev by Date: Re: how do i get a badged app icon?
  • Next by Date: [ANN] LibCVS, an Open Source, Objective-C, CVS framework
  • Previous by thread: Re: Bindings for NSTextFields
  • Next by thread: [ANN] LibCVS, an Open Source, Objective-C, CVS framework
  • Index(es):
    • Date
    • Thread