• 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
Programmatically constructing list of variable arguments?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Programmatically constructing list of variable arguments?


  • Subject: Programmatically constructing list of variable arguments?
  • From: "Jonathan del Strother" <email@hidden>
  • Date: Fri, 12 Dec 2008 13:53:16 +0000

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
_______________________________________________

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: Programmatically constructing list of variable arguments?
      • From: Jean-Daniel Dupas <email@hidden>
    • Re: Programmatically constructing list of variable arguments?
      • From: "Kyle Sluder" <email@hidden>
  • Prev by Date: Re: KVO on NSSlider not observing
  • Next by Date: Re: Programmatically constructing list of variable arguments?
  • Previous by thread: Re: Change Color Of Appended NSString?
  • Next by thread: Re: Programmatically constructing list of variable arguments?
  • Index(es):
    • Date
    • Thread