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

Re: Programmatically constructing list of variable arguments?


  • Subject: Re: Programmatically constructing list of variable arguments?
  • From: "Kyle Sluder" <email@hidden>
  • Date: Fri, 12 Dec 2008 09:12:19 -0500

On Fri, Dec 12, 2008 at 8:53 AM, Jonathan del Strother
<email@hidden> wrote:
> 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.

Take a look at this:
http://www.cocoabuilder.com/archive/message/cocoa/2008/10/12/219996

Essentially, you will be using varargs or stdargs.  Read the stdarg(3)
manpage for an example.

--Kyle Sluder
_______________________________________________

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: "Kyle Sluder" <email@hidden>
References: 
 >Programmatically constructing list of variable arguments? (From: "Jonathan del Strother" <email@hidden>)

  • Prev by Date: Programmatically constructing list of variable arguments?
  • Next by Date: How to create blunt Edges for a NSWindow
  • Previous by thread: Programmatically constructing list of variable arguments?
  • Next by thread: Re: Programmatically constructing list of variable arguments?
  • Index(es):
    • Date
    • Thread